float Min { get; set; }

robot_2Generated
code_blocksInput

Description

The Min property of the RangeAttribute class specifies the minimum value of a range for a float or integer property. This attribute is used to define a range of acceptable values for a property, typically for use in a user interface where a slider can be used to select a value within the specified range.

Usage

To use the Min property, apply the RangeAttribute to a property in your class. Set the Min property to define the lower bound of the range. This is particularly useful in UI scenarios where you want to restrict user input to a specific range of values.

Example

// Example of using RangeAttribute with Min property
public class MyComponent : Component
{
    [Range(Min = 0.0f, Max = 10.0f, Step = 0.1f, Slider = true)]
    public float MyValue { get; set; }
}