ADDITIONAL INFORMATION Scripting Reference Menu Item Setup http://unity3d.com/support/docum ... rence/MenuItem.html
How to add your own custom hotkey to the unity3d Editor Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder.
Scripting Hotkey special characters:
Note: A hotkey text must be preceded with a space character (“GameObject/Do _g”))
// Add menu named "Do Something" to the main menu and give it // a
shortcut (ctrl-o on Windows, cmd-o on OS X).
@MenuItem ("GameObject/Do Something %o")
static function
DoSomething () {
Debug.Log ("Perform operation");
}
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.