docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugUI.Foldout

    Unity-like foldout that can be collapsed.

    Inheritance
    object
    DebugUI.Widget
    DebugUI.Container
    DebugUI.Foldout
    DebugUI.Table.Row
    Implements
    DebugUI.IContainer
    DebugUI.IValueField
    Inherited Members
    DebugUI.Container.children
    DebugUI.Container.panel
    DebugUI.Container.OnItemAdded(ObservableList<DebugUI.Widget>, ListChangedEventArgs<DebugUI.Widget>)
    DebugUI.Container.OnItemRemoved(ObservableList<DebugUI.Widget>, ListChangedEventArgs<DebugUI.Widget>)
    DebugUI.Container.GetHashCode()
    DebugUI.Widget.m_Panel
    DebugUI.Widget.m_Parent
    DebugUI.Widget.parent
    DebugUI.Widget.flags
    DebugUI.Widget.displayName
    DebugUI.Widget.tooltip
    DebugUI.Widget.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    DebugUI.Widget.isHiddenCallback
    DebugUI.Widget.isHidden
    DebugUI.Widget.nameAndTooltip
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public class DebugUI.Foldout : DebugUI.Container, DebugUI.IContainer, DebugUI.IValueField

    Constructors

    Foldout()

    Constructor.

    Declaration
    public Foldout()

    Foldout(string, ObservableList<Widget>, string[], string[])

    Constructor.

    Declaration
    public Foldout(string displayName, ObservableList<DebugUI.Widget> children, string[] columnLabels = null, string[] columnTooltips = null)
    Parameters
    Type Name Description
    string displayName

    Display name of the foldout.

    ObservableList<DebugUI.Widget> children

    List of attached children.

    string[] columnLabels

    Optional list of column names.

    string[] columnTooltips

    Optional list of tooltips for column name labels.

    Fields

    contextMenuItems

    Optional list of context menu items. If the list is not provided, no context menu button will be displayed.

    Declaration
    public List<DebugUI.Foldout.ContextMenuItem> contextMenuItems
    Field Value
    Type Description
    List<DebugUI.Foldout.ContextMenuItem>

    isHeader

    Draw the foldout in full width using a header style.

    Declaration
    public bool isHeader
    Field Value
    Type Description
    bool

    opened

    Opened state of the foldout.

    Declaration
    public bool opened
    Field Value
    Type Description
    bool

    Properties

    columnLabels

    List of columns labels.

    Declaration
    public string[] columnLabels { get; set; }
    Property Value
    Type Description
    string[]

    columnTooltips

    List of columns label tooltips.

    Declaration
    public string[] columnTooltips { get; set; }
    Property Value
    Type Description
    string[]

    isReadOnly

    Always false.

    Declaration
    public bool isReadOnly { get; }
    Property Value
    Type Description
    bool

    Methods

    GetValue()

    Get the opened state of the foldout.

    Declaration
    public bool GetValue()
    Returns
    Type Description
    bool

    True if the foldout is opened.

    SetValue(bool)

    Set the value of the widget.

    Declaration
    public void SetValue(bool value)
    Parameters
    Type Name Description
    bool value

    Input value.

    SetValue(object)

    Set the opened state of the foldout.

    Declaration
    public void SetValue(object value)
    Parameters
    Type Name Description
    object value

    True to open the foldout, false to close it.

    ValidateValue(object)

    Validates the value of the widget before setting it.

    Declaration
    public object ValidateValue(object value)
    Parameters
    Type Name Description
    object value

    Input value.

    Returns
    Type Description
    object

    The validated value.

    Implements

    DebugUI.IContainer
    DebugUI.IValueField

    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)