Method Foldout
Foldout(bool, string, bool, GUIStyle)
Folds out the GUI item.
Declaration
public static bool Foldout(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | foldout | The shown foldout state. |
| string | text | The label to show. |
| bool | toggleOnLabelClick | Optional GUIStyle. |
| GUIStyle | style | Specifies whether clicking the label toggles the foldout state. The default value is false. Set to true to include the label in the clickable area. |
Returns
| Type | Description |
|---|---|
| bool | The foldout state selected by the user. If true, you should render sub-objects. |