Class DebugUIDrawer
Debug Item Drawer
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public class DebugUIDrawer
Methods
Apply(IValueField, DebugState, object)
Applies a value to the widget and the Debug State of the Debug Item.
Declaration
protected void Apply(DebugUI.IValueField widget, DebugState state, object value)
Parameters
Type | Name | Description |
---|---|---|
DebugUI.IValueField | widget | Debug Item widget. |
DebugState | state | Debug State associated with the Debug Item |
object | value | Input value. |
Begin(Widget, DebugState)
Implement this to execute processing before UI rendering.
Declaration
public virtual 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. |
Cast<T>(object)
Cast into the proper type.
Declaration
protected T Cast<T>(object o) where T : class
Parameters
Type | Name | Description |
---|---|---|
object | o | Object to be cast |
Returns
Type | Description |
---|---|
T | Returns o cast to type T |
Type Parameters
Name | Description |
---|---|
T | Type of the drawer |
End(Widget, DebugState)
Implement this to execute processing after UI rendering.
Declaration
public virtual 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. |
OnGUI(Widget, DebugState)
Implement this to execute UI rendering.
Declaration
public virtual 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. |
PrepareControlRect(float, bool)
Prepares the rendering Rect of the Drawer.
Declaration
protected Rect PrepareControlRect(float height = -1, bool fullWidth = false)
Parameters
Type | Name | Description |
---|---|---|
float | height | Height of the rect. |
bool | fullWidth | Whether to reserve full width for the element. |
Returns
Type | Description |
---|---|
Rect | Appropriate Rect for drawing. |