docs.unity.cn
    Show / Hide Table of Contents

    Class DebugUI.Panel

    Root panel class.

    Inheritance
    Object
    DebugUI.Panel
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public class Panel : DebugUI.IContainer, IComparable<DebugUI.Panel>

    Constructors

    Panel()

    Constructor.

    Declaration
    public Panel()

    Properties

    children

    List of children.

    Declaration
    public ObservableList<DebugUI.Widget> children { get; }
    Property Value
    Type Description
    ObservableList<DebugUI.Widget>
    Implements
    DebugUI.IContainer.children

    displayName

    Display name of the panel.

    Declaration
    public string displayName { get; set; }
    Property Value
    Type Description
    String
    Implements
    DebugUI.IContainer.displayName

    editorForceUpdate

    Returns true if the panel should always be updated.

    Declaration
    public bool editorForceUpdate { get; }
    Property Value
    Type Description
    Boolean

    flags

    Widget flags for this panel.

    Declaration
    public DebugUI.Flags flags { get; set; }
    Property Value
    Type Description
    DebugUI.Flags

    groupIndex

    Group index of the panel.

    Declaration
    public int groupIndex { get; set; }
    Property Value
    Type Description
    Int32

    isEditorOnly

    Specify if the panel is editor only.

    Declaration
    public bool isEditorOnly { get; }
    Property Value
    Type Description
    Boolean

    isInactiveInEditor

    Returns true if the panel is inactive in the editor.

    Declaration
    public bool isInactiveInEditor { get; }
    Property Value
    Type Description
    Boolean

    isRuntimeOnly

    Specify if the panel is runtime only.

    Declaration
    public bool isRuntimeOnly { get; }
    Property Value
    Type Description
    Boolean

    queryPath

    Path of the panel.

    Declaration
    public string queryPath { get; }
    Property Value
    Type Description
    String
    Implements
    DebugUI.IContainer.queryPath

    Methods

    GetHashCode()

    Returns the hash code of the panel.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the panel.

    Overrides
    Object.GetHashCode()

    OnItemAdded(ObservableList<DebugUI.Widget>, ListChangedEventArgs<DebugUI.Widget>)

    Callback used when a child is added.

    Declaration
    protected virtual void OnItemAdded(ObservableList<DebugUI.Widget> sender, ListChangedEventArgs<DebugUI.Widget> e)
    Parameters
    Type Name Description
    ObservableList<DebugUI.Widget> sender

    Sender widget.

    ListChangedEventArgs<DebugUI.Widget> e

    List of added children.

    OnItemRemoved(ObservableList<DebugUI.Widget>, ListChangedEventArgs<DebugUI.Widget>)

    Callback used when a child is removed.

    Declaration
    protected virtual void OnItemRemoved(ObservableList<DebugUI.Widget> sender, ListChangedEventArgs<DebugUI.Widget> e)
    Parameters
    Type Name Description
    ObservableList<DebugUI.Widget> sender

    Sender widget.

    ListChangedEventArgs<DebugUI.Widget> e

    List of removed children.

    SetDirty()

    Set the panel dirty.

    Declaration
    public void SetDirty()

    Events

    onSetDirty

    Callback used when the panel is set dirty.

    Declaration
    public event Action<DebugUI.Panel> onSetDirty
    Event Type
    Type Description
    Action<DebugUI.Panel>

    Explicit Interface Implementations

    IComparable<DebugUI.Panel>.CompareTo(DebugUI.Panel)

    Comparison function.

    Declaration
    int IComparable<DebugUI.Panel>.CompareTo(DebugUI.Panel other)
    Parameters
    Type Name Description
    DebugUI.Panel other

    Panel to compare to.

    Returns
    Type Description
    Int32

    True if the panels share the same group index.

    Implements
    IComparable<T>.CompareTo(T)

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023