docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUIDrawer

    Debug Item Drawer

    Inheritance
    Object
    DebugUIDrawer
    DebugUIDrawerBitField
    DebugUIDrawerBoolField
    DebugUIDrawerButton
    DebugUIDrawerColorField
    DebugUIDrawerContainer
    DebugUIDrawerEnumField
    DebugUIDrawerFloatField
    DebugUIDrawerFoldout
    DebugUIDrawerHBox
    DebugUIDrawerHistoryBoolField
    DebugUIDrawerHistoryEnumField
    DebugUIDrawerIntField
    DebugUIDrawerMessageBox
    DebugUIDrawerObjectField
    DebugUIDrawerObjectListField
    DebugUIDrawerProgressBarValue
    DebugUIDrawerTable
    DebugUIDrawerUIntField
    DebugUIDrawerValue
    DebugUIDrawerValueTuple
    DebugUIDrawerVBox
    DebugUIDrawerVector2Field
    DebugUIDrawerVector3Field
    DebugUIDrawerVector4Field
    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.

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023