|
Used to extract the context for a MenuItem. MenuCommand objects are passed to custom menu item functions defined using the MenuItem attribute.
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
See Also: MenuItem
context |
Context is the object that is the target of a menu command. |
userData |
An integer for passing custom information to a menu item. |
MenuCommand |
Creates a new MenuCommand object. |