Method DrawHeaderToggleFoldout
DrawHeaderToggleFoldout(GUIContent, bool, SerializedProperty, Action<Vector2>, Func<bool>, Action, string)
Draw a header toggle like in Volumes
Declaration
public static bool DrawHeaderToggleFoldout(GUIContent title, bool foldoutExpanded, SerializedProperty toogleProperty, Action<Vector2> contextAction, Func<bool> hasMoreOptions, Action toggleMoreOptions, string documentationURL)
Parameters
| Type | Name | Description |
|---|---|---|
| GUIContent | title | The title of the header |
| bool | foldoutExpanded | If the foldout is expanded |
| SerializedProperty | toogleProperty | The property to bind the toggle |
| Action<Vector2> | contextAction | The context action |
| Func<bool> | hasMoreOptions | Delegate saying if we have MoreOptions |
| Action | toggleMoreOptions | Callback called when the MoreOptions is toggled |
| string | documentationURL | Documentation URL |
Returns
| Type | Description |
|---|---|
| bool | return the state of the foldout header |