Method DrawHeaderToggle
DrawHeaderToggle(string, SerializedProperty, SerializedProperty, Action<Vector2>, Func<bool>, Action, string, Action<GenericMenu>, bool, bool, bool)
Draw a header toggle like in Volumes
Declaration
public static bool DrawHeaderToggle(string title, SerializedProperty group, SerializedProperty activeField, Action<Vector2> contextAction = null, Func<bool> hasMoreOptions = null, Action toggleMoreOptions = null, string documentationURL = null, Action<GenericMenu> customMenuContextAction = null, bool isBoxed = false, bool isTitleHeader = false, bool shouldUpdate = true)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title of the header |
SerializedProperty | group | The group of the header |
SerializedProperty | activeField | The active field |
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 |
Action<GenericMenu> | customMenuContextAction | Delegate which adds items to a generic menu. |
bool | isBoxed | States if the header toggle should be boxed. |
bool | isTitleHeader | [optional] is this a title header, this setting controls the color used for the foldout |
bool | shouldUpdate | States if the group and active field should update before usage and apply changes to them. |
Returns
Type | Description |
---|---|
bool | return the state of the foldout header |
DrawHeaderToggle(GUIContent, SerializedProperty, SerializedProperty, Action<Vector2>, Func<bool>, Action, string, Action<GenericMenu>, bool, bool, bool)
Draw a header toggle like in Volumes
Declaration
public static bool DrawHeaderToggle(GUIContent title, SerializedProperty group, SerializedProperty activeField, Action<Vector2> contextAction = null, Func<bool> hasMoreOptions = null, Action toggleMoreOptions = null, string documentationURL = null, Action<GenericMenu> customMenuContextAction = null, bool isBoxed = false, bool isTitleHeader = false, bool shouldUpdate = true)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | title | The title of the header |
SerializedProperty | group | The group of the header |
SerializedProperty | activeField | The active field |
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 |
Action<GenericMenu> | customMenuContextAction | Delegate which adds items to a generic menu. |
bool | isBoxed | States if the header toggle should be boxed. |
bool | isTitleHeader | [optional] is this a title header, this setting controls the color used for the foldout |
bool | shouldUpdate | States if the group and active field should update before usage and apply changes to them. |
Returns
Type | Description |
---|---|
bool | return the state of the foldout header |