Method FoldoutHelper
FoldoutHelper(bool, string, bool, GUIStyle)
Helper that folds out the GUI item. Exists to fix a linker binding error with Foldout.
Declaration
public static bool FoldoutHelper(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. |