docs.unity3d.com
    Show / Hide Table of Contents

    Class AccordionLayout

    Basic accordion UI component. Sets the height of the Target Mask between this layout element and +Content height

    Inheritance
    Object
    UnityEngine.EventSystems.UIBehaviour
    UnityEngine.UI.Selectable
    AccordionLayout
    Inherited Members
    UnityEngine.UI.Selectable.s_Selectables
    UnityEngine.UI.Selectable.s_SelectableCount
    UnityEngine.UI.Selectable.m_CurrentIndex
    UnityEngine.UI.Selectable.AllSelectablesNoAlloc(UnityEngine.UI.Selectable[])
    UnityEngine.UI.Selectable.Awake()
    UnityEngine.UI.Selectable.OnCanvasGroupChanged()
    UnityEngine.UI.Selectable.IsInteractable()
    UnityEngine.UI.Selectable.OnDidApplyAnimationProperties()
    UnityEngine.UI.Selectable.OnEnable()
    UnityEngine.UI.Selectable.OnTransformParentChanged()
    UnityEngine.UI.Selectable.OnDisable()
    UnityEngine.UI.Selectable.OnValidate()
    UnityEngine.UI.Selectable.Reset()
    UnityEngine.UI.Selectable.InstantClearState()
    UnityEngine.UI.Selectable.DoStateTransition(UnityEngine.UI.Selectable.SelectionState, System.Boolean)
    UnityEngine.UI.Selectable.FindSelectable(UnityEngine.Vector3)
    UnityEngine.UI.Selectable.FindSelectableOnLeft()
    UnityEngine.UI.Selectable.FindSelectableOnRight()
    UnityEngine.UI.Selectable.FindSelectableOnUp()
    UnityEngine.UI.Selectable.FindSelectableOnDown()
    UnityEngine.UI.Selectable.OnMove(UnityEngine.EventSystems.AxisEventData)
    UnityEngine.UI.Selectable.IsHighlighted()
    UnityEngine.UI.Selectable.IsPressed()
    UnityEngine.UI.Selectable.OnPointerDown(UnityEngine.EventSystems.PointerEventData)
    UnityEngine.UI.Selectable.OnPointerUp(UnityEngine.EventSystems.PointerEventData)
    UnityEngine.UI.Selectable.OnPointerEnter(UnityEngine.EventSystems.PointerEventData)
    UnityEngine.UI.Selectable.OnPointerExit(UnityEngine.EventSystems.PointerEventData)
    UnityEngine.UI.Selectable.OnSelect(UnityEngine.EventSystems.BaseEventData)
    UnityEngine.UI.Selectable.OnDeselect(UnityEngine.EventSystems.BaseEventData)
    UnityEngine.UI.Selectable.Select()
    UnityEngine.UI.Selectable.allSelectablesArray
    UnityEngine.UI.Selectable.allSelectableCount
    UnityEngine.UI.Selectable.allSelectables
    UnityEngine.UI.Selectable.navigation
    UnityEngine.UI.Selectable.transition
    UnityEngine.UI.Selectable.colors
    UnityEngine.UI.Selectable.spriteState
    UnityEngine.UI.Selectable.animationTriggers
    UnityEngine.UI.Selectable.targetGraphic
    UnityEngine.UI.Selectable.interactable
    UnityEngine.UI.Selectable.image
    UnityEngine.UI.Selectable.animator
    UnityEngine.UI.Selectable.currentSelectionState
    UnityEngine.EventSystems.UIBehaviour.OnDestroy()
    UnityEngine.EventSystems.UIBehaviour.IsActive()
    UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()
    UnityEngine.EventSystems.UIBehaviour.OnBeforeTransformParentChanged()
    UnityEngine.EventSystems.UIBehaviour.OnCanvasHierarchyChanged()
    UnityEngine.EventSystems.UIBehaviour.IsDestroyed()
    Namespace: UnityEngine.Industrial.Configuring.RuntimeUI
    Syntax
    [ExecuteInEditMode]
    public class AccordionLayout : Selectable, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IExpandable, IPointerClickHandler, IEventSystemHandler

    Properties

    IsExpanded

    Gets a value indicating whether this instance is expanded.

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

    true if this instance is expanded; otherwise, false.

    Implements
    IExpandable.IsExpanded

    Methods

    Expand(Boolean)

    Expands the specified expand.

    Declaration
    public void Expand(bool expand)
    Parameters
    Type Name Description
    Boolean expand

    if set to true [expand].

    Implements
    IExpandable.Expand(Boolean)

    OnPointerClick(PointerEventData)

    Called when [pointer click].

    Declaration
    public void OnPointerClick(PointerEventData eventData)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData

    The event data.

    Implements
    UnityEngine.EventSystems.IPointerClickHandler.OnPointerClick(UnityEngine.EventSystems.PointerEventData)

    Refresh()

    Refreshes this instance.

    Declaration
    public void Refresh()
    Implements
    IExpandable.Refresh()

    Start()

    Starts this instance.

    Declaration
    protected override void Start()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.Start()

    Events

    OnExpanded

    Occurs when [on expanded].

    Declaration
    public event EventHandler<AccordionLayoutChangedEventArgs> OnExpanded
    Event Type
    Type Description
    EventHandler<AccordionLayoutChangedEventArgs>
    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