Method DrawHeaderFoldout
DrawHeaderFoldout(string, bool, bool, Func<bool>, Action, bool, string, Action<Vector2>, Action<GenericMenu>)
Draw a foldout header
Declaration
public static bool DrawHeaderFoldout(string title, bool state, bool isBoxed = false, Func<bool> hasMoreOptions = null, Action toggleMoreOption = null, bool isTitleHeader = false, string documentationURL = "", Action<Vector2> contextAction = null, Action<GenericMenu> customMenuContextAction = null)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title of the header |
bool | state | The state of the header |
bool | isBoxed | [optional] is the header contained in a box style ? |
Func<bool> | hasMoreOptions | [optional] Delegate used to draw the right state of the advanced button. If null, no button drawn. |
Action | toggleMoreOption | [optional] Callback call when advanced button clicked. Should be used to toggle its state. |
bool | isTitleHeader | [optional] is this a title header, this setting controls the color used for the foldout |
string | documentationURL | [optional] The URL that the Unity Editor opens when the user presses the help button on the header. |
Action<Vector2> | contextAction | [optional] The callback that the Unity Editor executes when the user presses the burger menu on the header. |
Action<GenericMenu> | customMenuContextAction | [optional] Delegate which adds items to a generic menu when the user presses the burger menu on the header. |
Returns
Type | Description |
---|---|
bool | return the state of the foldout header |
DrawHeaderFoldout(GUIContent, bool, bool, Func<bool>, Action, bool, string, Action<Vector2>, Action<GenericMenu>)
Draw a foldout header
Declaration
public static bool DrawHeaderFoldout(GUIContent title, bool state, bool isBoxed = false, Func<bool> hasMoreOptions = null, Action toggleMoreOptions = null, bool isTitleHeader = false, string documentationURL = "", Action<Vector2> contextAction = null, Action<GenericMenu> customMenuContextAction = null)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | title | The title of the header |
bool | state | The state of the header |
bool | isBoxed | [optional] is the eader contained in a box style ? |
Func<bool> | hasMoreOptions | [optional] Delegate used to draw the right state of the advanced button. If null, no button drawn. |
Action | toggleMoreOptions | [optional] Callback call when advanced button clicked. Should be used to toggle its state. |
bool | isTitleHeader | [optional] is this a title header, this setting controls the color used for the foldout |
string | documentationURL | [optional] The URL that the Unity Editor opens when the user presses the help button on the header. |
Action<Vector2> | contextAction | [optional] The callback that the Unity Editor executes when the user presses the burger menu on the header. |
Action<GenericMenu> | customMenuContextAction | [optional] Delegate which adds items to a generic menu when the user presses the burger menu on the header. |
Returns
Type | Description |
---|---|
bool | return the state of the foldout header |