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