Class UIFoldout
Foldout in the DebugMenu
Inherited Members
UnityEngine.UI.Toggle.OnValidate()
UnityEngine.UI.Toggle.UnityEngine.UI.ICanvasElement.get_transform()
UnityEngine.UI.Selectable.Reset()
UnityEngine.UI.Selectable.animator
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()