Class LimitAttribute
Used to make a float or int variable in a script be restricted to a specific range.
Inheritance
System.Object
LimitAttribute
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class LimitAttribute : Attribute
Constructors
LimitAttribute(Single, Single, Single)
Initializes a new instance of the LimitAttribute class.
Declaration
public LimitAttribute(float min, float max = 3.40282347E+38F, float sliderSpeed = 1F)
Parameters
System.Single
min
The minimum limit value. |
System.Single
max
The maximum limit value. |
System.Single
sliderSpeed
The slider speed. |
Fields
Max
The maximum range value.
Declaration
public float Max
Field Value
System.Single
|
Min
The minimum range value.
Declaration
public float Min
Field Value
System.Single
|
SliderSpeed
The slider speed used to edit value.
Declaration
public float SliderSpeed
Field Value
System.Single
|
Extension Methods
See Also
System.Attribute