Class DebugUI.EnumField
A dropdown that contains the values from an enum.
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
public class EnumField : DebugUI.EnumField<int>, DebugUI.IValueField
Properties
autoEnum
Generates enumerator values and names automatically based on the provided type.
Declaration
public Type autoEnum { set; }
Property Value
Type | Description |
---|---|
Type |
currentIndex
Current enumeration value index.
Declaration
public int currentIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
getIndex
Get the enumeration value index.
Declaration
public Func<int> getIndex { get; set; }
Property Value
Type | Description |
---|---|
Func<Int32> |
setIndex
Set the enumeration value index.
Declaration
public Action<int> setIndex { get; set; }
Property Value
Type | Description |
---|---|
Action<Int32> |
Methods
SetValue(Int32)
Set the value of the field.
Declaration
public override void SetValue(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Input value. |
Overrides
UnityEngine.Rendering.DebugUI.Field<System.Int32>.SetValue(System.Int32)