UnityEngine.PropertyAttribute to select the enum from specified values.  
 More...
Inherits PropertyAttribute.
| Public Member Functions | |
| EnumConstraintAttribute (params object[] constraints) | |
| Setup constraint enum values.  More... | |
| EnumConstraintAttribute (int min, int max) | |
| Setup a range of the enum intvalues.  More... | |
| Public Attributes | |
| readonly object[] | constraints | 
| The constraint enum values.  More... | |
| readonly int | min | 
| The min intvalue of the enum in range.  More... | |
| readonly int | max | 
| The max intvalue of the enum in range.  More... | |
UnityEngine.PropertyAttribute to select the enum from specified values. 
Declaring examples below:
| EnumConstraintAttribute | ( | params object[] | constraints | ) | 
Setup constraint enum values.
| constraints | Constraint values. | 
| EnumConstraintAttribute | ( | int | min, | 
| int | max | ||
| ) | 
Setup a range of the enum int values. 
| min | Min value. | 
| max | Max value. | 
| readonly object [] constraints | 
The constraint enum values.
| readonly int min | 
The min int value of the enum in range. 
| readonly int max | 
The max int value of the enum in range.