Game Development Reference
In-Depth Information
The structure of the special MenuItem name is as follows:
CONTEXT : This is a fixed item to identify the menu as a contextual item
Object : This is the type of object this context menu will be available on
Name : This is the name of the menu item
Note
You can just add extra dimensions/children to context menus by adding additional "/"
characters.
However, if there is an error or the depth of your menus is too deep, Unity won't show the
error; it just won't display the menu item (leaving you scratching your head). If this hap-
pens, try setting a shorter or different menu name.
Context menus can be added to just about any object/component in the Unity editor, in-
cluding your own objects.
Search WWH ::




Custom Search