DoubleConstrainedValue
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
MinValue 以下または MaxValue 以上である数値を作成するために使用されるインスタンス。
概要
プロパティ
DoubleConstrainedValue.Value プロパティが持つことができる最高の数。
DoubleConstrainedValue.Value プロパティが最も低い数になることができます。
DoubleConstrainedValue.MinValue と DoubleConstrainedValue.MaxValue の間の数値を保持するために使用されます。
イベント
発射されるのは、DoubleConstrainedValue.Value の DoubleConstrainedValue が変更されたときです。
プロパティ
方法
イベント
Changed
発射されるのは、DoubleConstrainedValue.Value の DoubleConstrainedValue が変更されたときです。
パラメータ
コードサンプル
The below example, assuming all referenced objects existed, would print the DoubleConstrainedValue's new value each time it's changed. In the example below it would print 2, assuming it's within DoubleConstrainedValue's MinValue and MaxValue range. Otherwise there will be no change.
workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
print(newValue)
end)
workspace.DoubleConstrainedValue.Value = 2