Class EnumDisplayAttribute
Used with a special property drawer that can limit which enum options are displayed
Namespace: Unity.XRTools.Utils.GUI
Syntax
public sealed class EnumDisplayAttribute : PropertyAttribute
Constructors
EnumDisplayAttribute(Object[])
Initialize a new EnumDisplayAttribute
Declaration
public EnumDisplayAttribute(params object[] enumValues)
Parameters
| Type | Name | Description |
|---|---|---|
| Object[] | enumValues | The enum values which should be displayed |
Fields
names
The names of the enum values used to initialize this attribute
Declaration
public string[] names
Field Value
| Type | Description |
|---|---|
| String[] |
values
The int values of the enum values used to initialize this attribute
Declaration
public int[] values
Field Value
| Type | Description |
|---|---|
| Int32[] |