Class DebugUIFieldDrawer<TValue, TField, TState>
Common class to help drawing fields
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class DebugUIFieldDrawer<TValue, TField, TState> : DebugUIDrawer where TField : DebugUI.Field<TValue> where TState : DebugState
Type Parameters
| Name | Description |
|---|---|
| TValue | The internal value of the field |
| TField | The type of the field widget |
| TState | The state of the field |
Methods
Begin(Widget, DebugState)
Implement this to execute processing before UI rendering.
Declaration
public override void Begin(DebugUI.Widget widget, DebugState state)
Parameters
| Type | Name | Description |
|---|---|---|
| DebugUI.Widget | widget | Widget that is going to be rendered. |
| DebugState | state | Debug State associated with the Debug Item. |
Overrides
DoGUI(Rect, GUIContent, TField, TState)
Does the field of the given type
Declaration
protected abstract TValue DoGUI(Rect rect, GUIContent label, TField field, TState state)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | rect | The rect to draw the field |
| GUIContent | label | The label for the field |
| TField | field | The field |
| TState | state | The state |
Returns
| Type | Description |
|---|---|
| TValue | The current value from the UI |
End(Widget, DebugState)
Implement this to execute processing after UI rendering.
Declaration
public override void End(DebugUI.Widget widget, DebugState state)
Parameters
| Type | Name | Description |
|---|---|---|
| DebugUI.Widget | widget | Widget that is going to be rendered. |
| DebugState | state | Debug State associated with the Debug Item. |
Overrides
OnGUI(Widget, DebugState)
Implement this to execute UI rendering.
Declaration
public override bool OnGUI(DebugUI.Widget widget, DebugState state)
Parameters
| Type | Name | Description |
|---|---|---|
| DebugUI.Widget | widget | Widget that is going to be rendered. |
| DebugState | state | Debug State associated with the Debug Item. |
Returns
| Type | Description |
|---|---|
| bool | Returns the state of the widget. |