DoubleConstrainedValue
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
MaxValue 以下の値以下に使用できる数値を作成するインスタンス。
概要
プロパティ
Class.DoubleConstrainedValue.Value プロパティが最大になることができる番号。
Class.DoubleConstrainedValue.Value プロパティが最小である値。
Class.DoubleConstrainedValue.MinValue と Class.DoubleConstrainedValue.MaxValue の間の数値を保持します。
イベント
Class.DoubleConstrainedValue の DoubleConstrainedValue が変更されると、Class.DoubleConstrainedValue の 1>Class.DoubleConstrainedValue1> が変更されます。
プロパティ
方法
イベント
Changed
Class.DoubleConstrainedValue の DoubleConstrainedValue が変更されると、Class.DoubleConstrainedValue の 1>Class.DoubleConstrainedValue1> が変更されます。
パラメータ
コードサンプル
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