The Min
property of the RangedFloat
struct represents the minimum value of the float range. This property is used to define the lower bound of the range within which a float value can be randomized or fixed.
The Min
property of the RangedFloat
struct represents the minimum value of the float range. This property is used to define the lower bound of the range within which a float value can be randomized or fixed.
To use the Min
property, you can access it directly from an instance of RangedFloat
. It is a read-write property, allowing you to get or set the minimum value of the range.
// Example of using the Min property RangedFloat rangedFloat = new RangedFloat(); rangedFloat.Min = 0.0f; // Set the minimum value of the range float minValue = rangedFloat.Min; // Get the minimum value of the range // Use the RangedFloat in a method float randomValue = rangedFloat.GetValue(); // This will return a value between Min and Max