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