Class DebugUI.Foldout | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUI.Foldout

    Unity-like foldout that can be collapsed.

    Inheritance
    Object
    DebugUI.Widget
    DebugUI.Container
    DebugUI.Foldout
    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.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    Namespace: UnityEngine.Rendering
    Syntax
    public class Foldout : DebugUI.Container, DebugUI.IContainer, DebugUI.IValueField

    Constructors

    Foldout()

    Constructor.

    Declaration
    public Foldout()

    Foldout(String, ObservableList<DebugUI.Widget>, String[])

    Constructor.

    Declaration
    public Foldout(string displayName, ObservableList<DebugUI.Widget> children, string[] columnLabels = 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.

    Fields

    opened

    Opened state of the foldout.

    Declaration
    public bool opened
    Field Value
    Type Description
    Boolean

    Properties

    columnLabels

    List of columns labels.

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

    isReadOnly

    Always false.

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

    Methods

    GetValue()

    Get the opened state of the foldout.

    Declaration
    public bool GetValue()
    Returns
    Type Description
    Boolean

    True if the foldout is opened.

    SetValue(Boolean)

    Set the value of the widget.

    Declaration
    public void SetValue(bool value)
    Parameters
    Type Name Description
    Boolean 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.

    Implements
    DebugUI.IValueField.SetValue(Object)

    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.IValueField.ValidateValue(Object)

    Explicit Interface Implementations

    DebugUI.IValueField.GetValue()

    Get the opened state of the foldout.

    Declaration
    object DebugUI.IValueField.GetValue()
    Returns
    Type Description
    Object

    True if the foldout is opened.

    Implements
    DebugUI.IValueField.GetValue()
    In This Article
    • Constructors
      • Foldout()
      • Foldout(String, ObservableList<DebugUI.Widget>, String[])
    • Fields
      • opened
    • Properties
      • columnLabels
      • isReadOnly
    • Methods
      • GetValue()
      • SetValue(Boolean)
      • SetValue(Object)
      • ValidateValue(Object)
    • Explicit Interface Implementations
      • DebugUI.IValueField.GetValue()
    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