DoubleConstrainedValue
An instance which is used to create a number value which can never be less than the MinValue or more than the MaxValue.
Resumen
Propiedades
The highest number that the DoubleConstrainedValue.Value property can be.
The lowest number that the DoubleConstrainedValue.Value property can be.
Used to hold a number value between DoubleConstrainedValue.MinValue and DoubleConstrainedValue.MaxValue.
Eventos
Fired whenever the DoubleConstrainedValue.Value of the DoubleConstrainedValue is changed.
Propiedades
Value
Used to hold a number value between DoubleConstrainedValue.MinValue and DoubleConstrainedValue.MaxValue.
Métodos
Eventos
Changed
Fired whenever the DoubleConstrainedValue.Value of the DoubleConstrainedValue is changed.
Parámetros
Muestras de código
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