Class DebugUIDrawerEnumField
Builtin Drawer for Enum Debug Items.
Inheritance
DebugUIDrawerEnumField
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
[DebugUIDrawer(typeof(DebugUI.EnumField))]
public sealed class DebugUIDrawerEnumField : DebugUIFieldDrawer<int, DebugUI.EnumField, DebugStateEnum>
Methods
DoGUI(Rect, GUIContent, DebugUI.EnumField, DebugStateEnum)
Does the field of the given type
Declaration
protected override int DoGUI(Rect rect, GUIContent label, DebugUI.EnumField field, DebugStateEnum state)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The rect to draw the field |
GUIContent | label | The label for the field |
DebugUI.EnumField | field | The field |
DebugStateEnum | state | The state |
Returns
Type | Description |
---|---|
Int32 | The current value from the UI |
Overrides
UnityEditor.Rendering.DebugUIFieldDrawer<System.Int32, UnityEngine.Rendering.DebugUI.EnumField, UnityEditor.Rendering.DebugStateEnum>.DoGUI(UnityEngine.Rect, UnityEngine.GUIContent, UnityEngine.Rendering.DebugUI.EnumField, UnityEditor.Rendering.DebugStateEnum)