docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugUIDrawer

    Debug Item Drawer

    Inheritance
    object
    DebugUIDrawer
    DebugUIDrawerContainer
    DebugUIDrawerFoldout
    DebugUIDrawerHBox
    DebugUIDrawerMessageBox
    DebugUIDrawerObjectListField
    DebugUIDrawerTable
    DebugUIDrawerVBox
    DebugUIFieldDrawer<TValue, TField, TState>
    DebugUIWidgetDrawer<TWidget>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)