Class MinAttribute
Attribute used to clamp a float or in variable to a min value in a property decorator.
Namespace: Unity.MARS
Syntax
[AttributeUsage(AttributeTargets.Field)]
public sealed class MinAttribute : Attribute, _Attribute
Constructors
MinAttribute(Single)
Attribute used to clamp a float or in variable to a min value in a property decorator.
Declaration
public MinAttribute(float min)
Parameters
Type | Name | Description |
---|---|---|
Single | min | Min value that can be set in a property decorator. |
Fields
min
Min value that can be set in a property decorator.
Declaration
public float min
Field Value
Type | Description |
---|---|
Single |