Class DebugUIDrawer
Debug Item Drawer
Namespace: UnityEditor.Rendering
Syntax
public class DebugUIDrawer
Methods
Apply(DebugUI.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(DebugUI.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(DebugUI.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(DebugUI.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 |
---|---|
Boolean | Returns the state of the widget. |
PrepareControlRect(Single, Boolean)
Prepares the rendering Rect of the Drawer.
Declaration
protected Rect PrepareControlRect(float height = -1F, bool fullWidth = false)
Parameters
Type | Name | Description |
---|---|---|
Single | height | Height of the rect. |
Boolean | fullWidth | Whether to reserve full width for the element. |
Returns
Type | Description |
---|---|
Rect | Appropriate Rect for drawing. |