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 randomize between a minimum and maximum range.
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 randomize between a minimum and maximum range.
To use the FixedValue
property, simply assign a float value to it. This will set the RangedFloat
to operate in a fixed mode, using the assigned value as the constant output.
Example usage:
RangedFloat rangedFloat = new RangedFloat();
rangedFloat.FixedValue = 5.0f;
float value = rangedFloat.GetValue(); // value will be 5.0f
RangedFloat rangedFloat = new RangedFloat(); rangedFloat.FixedValue = 5.0f; float value = rangedFloat.GetValue(); // value will be 5.0f