float Min { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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