DoubleConstrainedValue

Visualizza obsoleti

*Questo contenuto è tradotto usando AI (Beta) e potrebbe contenere errori. Per visualizzare questa pagina in inglese, clicca qui.

Obsoleto

Un'istanza che viene utilizzata per creare un valore numerico che non può essere inferiore a MinValue o superiore a MaxValue.

Sommario

Proprietà

Proprietà

ConstrainedValue

Nascosto
Non Replicato
Lettura Parallela

MaxValue

Lettura Parallela

Il numero più alto che la proprietà DoubleConstrainedValue.Value può essere.

MinValue

Lettura Parallela

Il numero più basso che la proprietà DoubleConstrainedValue.Value può essere.

Value

Non Replicato
Lettura Parallela

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

value: number

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.

DoubleConstrainedValue.Changed

workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
print(newValue)
end)
workspace.DoubleConstrainedValue.Value = 2