Class EditorGUIDrawerUtility
A utility class for drawing GUI in the editor.
Namespace: Unity.AnimeToolbox.Editor
Syntax
public static class EditorGUIDrawerUtility
Methods
DrawFileSelectorGUI(String, String, String, String, Action, Func<String, String>)
Draws a standard file selector GUI used in AnimeToolbox.
Declaration
public static string DrawFileSelectorGUI(string label, string panelDialogTitle, string initialFilePath, string fileExtension, Action onReload, Func<string, string> onValidFileSelected)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label. Can be null. |
String | panelDialogTitle | The title of the file panel dialog box. |
String | initialFilePath | The initial file path. |
String | fileExtension | The default extension of the file to be selected. |
Action | onReload | The action to be performed when the reload button is clicked. Passing null will hide the reload button. |
Func<String, String> | onValidFileSelected | A postprocess to be executed on the new path. Can be null. |
Returns
Type | Description |
---|---|
String |
DrawFolderSelectorGUI(String, String, String, Action, Func<String, String>)
Draws a standard folder selector GUI used in AnimeToolbox.
Declaration
public static string DrawFolderSelectorGUI(string label, string panelDialogTitle, string initialFolderPath, Action onReload, Func<string, string> onValidFolderSelected)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label. Can be null. |
String | panelDialogTitle | The title of the folder panel dialog box. |
String | initialFolderPath | The initial folder path. |
Action | onReload | The action to be performed when the reload button is clicked. Passing null will hide the reload button. |
Func<String, String> | onValidFolderSelected | A postprocess to be executed on the new path. Can be null. |
Returns
Type | Description |
---|---|
String |