Class UIFoldout
Foldout in the DebugMenu
Namespace: UnityEngine.Rendering.UI
Syntax
public class UIFoldout : Toggle
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()