float FixedValue { get; set; }

robot_2Generated
code_blocksInput

Description

The FixedValue property represents a fixed float value within the RangedFloat structure. When this property is set, the RangedFloat is converted to a fixed value, meaning it will not randomize between a range but instead return this specific value.

Usage

To use the FixedValue property, simply assign a float value to it. This will set the RangedFloat to operate in a fixed mode, where the GetValue method will always return this fixed value.

Example

// Example of setting a fixed value for a RangedFloat
RangedFloat rangedFloat = new RangedFloat();
rangedFloat.FixedValue = 5.0f;

// This will always return 5.0f
float value = rangedFloat.GetValue();