Class DebugUIDrawerColorField
Builtin Drawer for Color Debug Items.
Inheritance
DebugUIDrawerColorField
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[DebugUIDrawer(typeof(DebugUI.ColorField))]
public sealed class DebugUIDrawerColorField : DebugUIFieldDrawer<Color, DebugUI.ColorField, DebugStateColor>
Methods
DoGUI(Rect, GUIContent, 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 |