Class MaxAttribute
Attribute used to clamp a float or in variable to a max value in a property decorator.
Namespace: Unity.MARS.Attributes
Syntax
[AttributeUsage(AttributeTargets.Field)]
[MovedFrom("Unity.MARS")]
public sealed class MaxAttribute : Attribute, _Attribute
Constructors
MaxAttribute(Single)
Attribute used to clamp a float or in variable to a max value in a property decorator.
Declaration
public MaxAttribute(float max)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 float max
Field Value
| Type | Description |
|---|---|
| Single |