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 mai inferiore al MinValue o superiore al 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 mantenere un valore numerico tra DoubleConstrainedValue.MinValue e DoubleConstrainedValue.MaxValue .
Metodi
Eventi
Sparato ogni volta che viene modificato il DoubleConstrainedValue.Value del DoubleConstrainedValue .
Proprietà
Value
Utilizzato per mantenere un valore numerico tra DoubleConstrainedValue.MinValue e DoubleConstrainedValue.MaxValue .
Metodi
Eventi
Changed
Sparato ogni volta che viene modificato il DoubleConstrainedValue.Value del DoubleConstrainedValue .
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