Class DebugUIHandlerWidget | Core RP Library | 8.2.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUIHandlerWidget

    Base class for handling UI actions for widgets.

    Inheritance
    Object
    DebugUIHandlerWidget
    DebugUIHandlerBitField
    DebugUIHandlerButton
    DebugUIHandlerColor
    DebugUIHandlerEnumField
    DebugUIHandlerFloatField
    DebugUIHandlerFoldout
    DebugUIHandlerGroup
    DebugUIHandlerHBox
    DebugUIHandlerIndirectFloatField
    DebugUIHandlerIndirectToggle
    DebugUIHandlerIntField
    DebugUIHandlerToggle
    DebugUIHandlerUIntField
    DebugUIHandlerValue
    DebugUIHandlerVBox
    DebugUIHandlerVector2
    DebugUIHandlerVector3
    DebugUIHandlerVector4
    Namespace: UnityEngine.Rendering.UI
    Syntax
    public class DebugUIHandlerWidget : MonoBehaviour

    Fields

    colorDefault

    Default widget color.

    Declaration
    public Color colorDefault
    Field Value
    Type Description
    Color

    colorSelected

    Selected widget color.

    Declaration
    public Color colorSelected
    Field Value
    Type Description
    Color

    m_Widget

    Associated widget.

    Declaration
    protected DebugUI.Widget m_Widget
    Field Value
    Type Description
    DebugUI.Widget

    Properties

    nextUIHandler

    Next widget UI Handler.

    Declaration
    public DebugUIHandlerWidget nextUIHandler { get; set; }
    Property Value
    Type Description
    DebugUIHandlerWidget

    parentUIHandler

    Parent widget UI Handler.

    Declaration
    public DebugUIHandlerWidget parentUIHandler { get; set; }
    Property Value
    Type Description
    DebugUIHandlerWidget

    previousUIHandler

    Previous widget UI Handler.

    Declaration
    public DebugUIHandlerWidget previousUIHandler { get; set; }
    Property Value
    Type Description
    DebugUIHandlerWidget

    Methods

    CastWidget<T>()

    Casts the widget to the correct type.

    Declaration
    protected T CastWidget<T>()
        where T : DebugUI.Widget
    Returns
    Type Description
    T

    Properly cast reference to the widget.

    Type Parameters
    Name Description
    T

    Type of the widget.

    Next()

    Next implementation.

    Declaration
    public virtual DebugUIHandlerWidget Next()
    Returns
    Type Description
    DebugUIHandlerWidget

    Next widget UI handler, parent if there is none.

    OnAction()

    OnAction implementation.

    Declaration
    public virtual void OnAction()

    OnDecrement(Boolean)

    OnDecrement implementation.

    Declaration
    public virtual void OnDecrement(bool fast)
    Parameters
    Type Name Description
    Boolean fast

    Trye if decrementing fast.

    OnDeselection()

    OnDeselection implementation.

    Declaration
    public virtual void OnDeselection()

    OnEnable()

    OnEnable implementation.

    Declaration
    protected virtual void OnEnable()

    OnIncrement(Boolean)

    OnIncrement implementation.

    Declaration
    public virtual void OnIncrement(bool fast)
    Parameters
    Type Name Description
    Boolean fast

    True if incrementing fast.

    OnSelection(Boolean, DebugUIHandlerWidget)

    OnSelection implementation.

    Declaration
    public virtual bool OnSelection(bool fromNext, DebugUIHandlerWidget previous)
    Parameters
    Type Name Description
    Boolean fromNext

    True if the selection wrapped around.

    DebugUIHandlerWidget previous

    Previous widget.

    Returns
    Type Description
    Boolean

    True if the selection is allowed.

    Previous()

    Previous implementation.

    Declaration
    public virtual DebugUIHandlerWidget Previous()
    Returns
    Type Description
    DebugUIHandlerWidget

    Previous widget UI handler, parent if there is none.

    Back to top
    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