UnityEngine.RangeAttribute.RangeAttribute C# (CSharp) Method

RangeAttribute() public method

Attribute used to make a float or int variable in a script be restricted to a specific range.

public RangeAttribute ( float min, float max ) : System
min float The minimum allowed value.
max float The maximum allowed value.
return System
        public RangeAttribute(float min, float max)
        {
            this.min = min;
            this.max = max;
        }
    }
RangeAttribute