Extension methods for UnityEditor.GenericMenu
.
More...
|
static void | AddItem< T > (this GenericMenu menu, string content, Action< T > func, T param, bool check=false, bool enable=true) |
| Add an item to the menu, it will be disabled if the function isn't assigned. More...
|
|
static void | AddItem (this GenericMenu menu, string content, Action func=null, bool check=false, bool enable=true) |
| Add an item to the menu, it will be disabled if the function isn't assigned. More...
|
|
Extension methods for UnityEditor.GenericMenu
.
3
static void AddItem< T > |
( |
this GenericMenu |
menu, |
|
|
string |
content, |
|
|
Action< T > |
func, |
|
|
T |
param, |
|
|
bool |
check = false , |
|
|
bool |
enable = true |
|
) |
| |
|
static |
Add an item to the menu, it will be disabled if the function isn't assigned.
- Template Parameters
-
- Parameters
-
menu | Menu. |
content | Content. |
func | The function to call when the menu item is selected. |
param | The parameter to pass to the function. |
check | Whether to show the item is currently activated. |
enable | If set to false to enforce disabled. |
static void AddItem |
( |
this GenericMenu |
menu, |
|
|
string |
content, |
|
|
Action |
func = null , |
|
|
bool |
check = false , |
|
|
bool |
enable = true |
|
) |
| |
|
static |
Add an item to the menu, it will be disabled if the function isn't assigned.
- Parameters
-
menu | Menu. |
content | Content. |
func | The function to call when the menu item is selected. |
check | Whether to show the item is currently activated. |
enable | If set to false to enforce disabled. |