Class MinMaxAttribute
Tag a
Namespace: Unity.Properties.UI
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class MinMaxAttribute : PropertyAttribute
Constructors
MinMaxAttribute(Single, Single)
Constructs a new MinMaxAttribute with specified min and max values.
Declaration
public MinMaxAttribute(float min, float max)
Parameters
Type | Name | Description |
---|---|---|
Single | min | The minimum allowed value. |
Single | max | The maximum allowed value. |
Fields
Max
High-limit value.
Declaration
public readonly float Max
Field Value
Type | Description |
---|---|
Single |
Min
Low-limit value.
Declaration
public readonly float Min
Field Value
Type | Description |
---|---|
Single |