Class UIFoldout
Inheritance
UIBehaviour
Selectable
Toggle
UIFoldout
Implements
IMoveHandler
IPointerDownHandler
IPointerUpHandler
IPointerEnterHandler
IPointerExitHandler
ISelectHandler
IDeselectHandler
IPointerClickHandler
ISubmitHandler
IEventSystemHandler
ICanvasElement
Inherited Members
Toggle.toggleTransition
Toggle.graphic
Toggle.group
Toggle.onValueChanged
Toggle.OnValidate()
Toggle.Rebuild(CanvasUpdate)
Toggle.LayoutComplete()
Toggle.GraphicUpdateComplete()
Toggle.OnDestroy()
Toggle.OnEnable()
Toggle.OnDisable()
Toggle.OnDidApplyAnimationProperties()
Toggle.isOn
Toggle.OnPointerClick(PointerEventData)
Toggle.OnSubmit(BaseEventData)
Selectable.s_Selectables
Selectable.s_SelectableCount
Selectable.allSelectablesArray
Selectable.allSelectableCount
Selectable.allSelectables
Selectable.AllSelectablesNoAlloc(Selectable[])
Selectable.m_CurrentIndex
Selectable.navigation
Selectable.transition
Selectable.colors
Selectable.spriteState
Selectable.animationTriggers
Selectable.targetGraphic
Selectable.interactable
Selectable.image
Selectable.animator
Selectable.Awake()
Selectable.OnCanvasGroupChanged()
Selectable.IsInteractable()
Selectable.OnTransformParentChanged()
Selectable.Reset()
Selectable.currentSelectionState
Selectable.InstantClearState()
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()
UIBehaviour.IsActive()
UIBehaviour.OnRectTransformDimensionsChange()
UIBehaviour.OnBeforeTransformParentChanged()
UIBehaviour.OnCanvasHierarchyChanged()
UIBehaviour.IsDestroyed()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[ExecuteAlways]
public class UIFoldout : Toggle, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IPointerClickHandler, ISubmitHandler, IEventSystemHandler, ICanvasElement
Fields
arrowClosed
Declaration
public GameObject arrowClosed
Field Value
arrowOpened
Declaration
public GameObject arrowOpened
Field Value
content
Contents inside the toggle
Declaration
public GameObject content
Field Value
Methods
SetState(bool)
Change the state of this foldout
Declaration
public void SetState(bool state)
Parameters
Type |
Name |
Description |
bool |
state |
The new State
|
SetState(bool, bool)
Change the state of this foldout
Declaration
public void SetState(bool state, bool rebuildLayout)
Parameters
Type |
Name |
Description |
bool |
state |
The new State
|
bool |
rebuildLayout |
If True, the layout will be rebuild
|
Start()
Start of this GameObject lifecicle
Declaration
protected override void Start()
Overrides
UnityEngine.UI.Toggle.Start()
Implements
UnityEngine.EventSystems.IMoveHandler
UnityEngine.EventSystems.IPointerDownHandler
UnityEngine.EventSystems.IPointerUpHandler
UnityEngine.EventSystems.IPointerEnterHandler
UnityEngine.EventSystems.IPointerExitHandler
UnityEngine.EventSystems.ISelectHandler
UnityEngine.EventSystems.IDeselectHandler
UnityEngine.EventSystems.IPointerClickHandler
UnityEngine.EventSystems.ISubmitHandler
UnityEngine.EventSystems.IEventSystemHandler
UnityEngine.UI.ICanvasElement
Extension Methods
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.