float FixedValue { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

Example

RangedFloat rangedFloat = new RangedFloat();
rangedFloat.FixedValue = 5.0f;
float value = rangedFloat.GetValue(); // value will be 5.0f