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