The FixedValue
property of the RangedFloat
struct represents a fixed float value. When this property is set, the RangedFloat
is converted to a fixed value, meaning it will no longer represent a range but a single, constant value.
The FixedValue
property of the RangedFloat
struct represents a fixed float value. When this property is set, the RangedFloat
is converted to a fixed value, meaning it will no longer represent a range but a single, constant value.
To use the FixedValue
property, simply assign a float
value to it. This will set the RangedFloat
to a fixed state, overriding any previous range settings.
// Example of setting a fixed value for a RangedFloat RangedFloat rangedFloat = new RangedFloat(); rangedFloat.FixedValue = 5.0f; // Now rangedFloat represents a fixed value of 5.0 float value = rangedFloat.GetValue(); // value will be 5.0