DoubleConstrainedValue
*Questo contenuto è tradotto usando AI (Beta) e potrebbe contenere errori. Per visualizzare questa pagina in inglese, clicca qui.
Un'istanza che viene utilizzata per creare un valore numerico che non può essere inferiore a MinValue o superiore a MaxValue.
Sommario
Proprietà
Il numero più alto che la proprietà DoubleConstrainedValue.Value può essere.
Il numero più basso che la proprietà DoubleConstrainedValue.Value può essere.
Utilizzato per tenere un valore numerico tra DoubleConstrainedValue.MinValue e DoubleConstrainedValue.MaxValue .
Metodi
Eventi
Fuori quando il DoubleConstrainedValue.Value di the DoubleConstrainedValue è cambiato.
Proprietà
Value
Utilizzato per tenere un valore numerico tra DoubleConstrainedValue.MinValue e DoubleConstrainedValue.MaxValue .
Metodi
Eventi
Changed
Fuori quando il DoubleConstrainedValue.Value di the DoubleConstrainedValue è cambiato.
Parametri
Campioni di codice
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