docs.unity3d.com
    Show / Hide Table of Contents

    Class UIFoldout

    Foldout in the DebugMenu

    Inheritance
    Object
    UIBehaviour
    Selectable
    Toggle
    UIFoldout
    Inherited Members
    Toggle.toggleTransition
    Toggle.graphic
    Toggle.onValueChanged
    UnityEngine.UI.Toggle.OnValidate()
    Toggle.Rebuild(CanvasUpdate)
    Toggle.LayoutComplete()
    Toggle.GraphicUpdateComplete()
    Toggle.OnDestroy()
    Toggle.OnEnable()
    Toggle.OnDisable()
    Toggle.OnDidApplyAnimationProperties()
    Toggle.SetIsOnWithoutNotify(Boolean)
    Toggle.OnPointerClick(PointerEventData)
    Toggle.OnSubmit(BaseEventData)
    UnityEngine.UI.Toggle.UnityEngine.UI.ICanvasElement.get_transform()
    Toggle.group
    Toggle.isOn
    Selectable.s_Selectables
    Selectable.s_SelectableCount
    Selectable.m_CurrentIndex
    Selectable.AllSelectablesNoAlloc(Selectable[])
    Selectable.Awake()
    Selectable.OnCanvasGroupChanged()
    Selectable.IsInteractable()
    Selectable.OnTransformParentChanged()
    UnityEngine.UI.Selectable.Reset()
    Selectable.InstantClearState()
    Selectable.DoStateTransition(Selectable.SelectionState, Boolean)
    Selectable.FindSelectable(Vector3)
    Selectable.FindSelectableOnLeft()
    Selectable.FindSelectableOnRight()
    Selectable.FindSelectableOnUp()
    Selectable.FindSelectableOnDown()
    Selectable.OnMove(AxisEventData)
    Selectable.IsHighlighted()
    Selectable.IsPressed()
    Selectable.OnPointerDown(PointerEventData)
    Selectable.OnPointerUp(PointerEventData)
    Selectable.OnPointerEnter(PointerEventData)
    Selectable.OnPointerExit(PointerEventData)
    Selectable.OnSelect(BaseEventData)
    Selectable.OnDeselect(BaseEventData)
    Selectable.Select()
    Selectable.allSelectablesArray
    Selectable.allSelectableCount
    Selectable.allSelectables
    Selectable.navigation
    Selectable.transition
    Selectable.colors
    Selectable.spriteState
    Selectable.animationTriggers
    Selectable.targetGraphic
    Selectable.interactable
    Selectable.image
    UnityEngine.UI.Selectable.animator
    Selectable.currentSelectionState
    UIBehaviour.IsActive()
    UIBehaviour.OnRectTransformDimensionsChange()
    UIBehaviour.OnBeforeTransformParentChanged()
    UIBehaviour.OnCanvasHierarchyChanged()
    UIBehaviour.IsDestroyed()
    Namespace: UnityEngine.Rendering.UI
    Syntax
    [ExecuteAlways]
    public class UIFoldout : Toggle, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IPointerClickHandler, ISubmitHandler, IEventSystemHandler, ICanvasElement

    Fields

    arrowClosed

    Arror in state closed

    Declaration
    public GameObject arrowClosed
    Field Value
    Type Description
    GameObject

    arrowOpened

    Arror in state opened

    Declaration
    public GameObject arrowOpened
    Field Value
    Type Description
    GameObject

    content

    Contents inside the toggle

    Declaration
    public GameObject content
    Field Value
    Type Description
    GameObject

    Methods

    SetState(Boolean)

    Change the state of this foldout

    Declaration
    public void SetState(bool state)
    Parameters
    Type Name Description
    Boolean state

    The new State

    SetState(Boolean, Boolean)

    Change the state of this foldout

    Declaration
    public void SetState(bool state, bool rebuildLayout)
    Parameters
    Type Name Description
    Boolean state

    The new State

    Boolean rebuildLayout

    If True, the layout will be rebuild

    Start()

    Start of this GameObject lifecicle

    Declaration
    protected override void Start()
    Overrides
    Toggle.Start()

    Extension Methods

    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
    • 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