Class EnumDisplayAttribute
Used with a special property drawer that can limit which enum options are displayed
Inherited Members
Namespace: Unity.XR.CoreUtils.GUI
Syntax
public sealed class EnumDisplayAttribute : PropertyAttribute, _Attribute
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[] |