This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NoiseCrime Gist | |
// 2014.06.21 | |
// Unity Version: 3.5.7+ | |
// This script provides access to a projects scene names in the Inspector. | |
// It uses MenuItem to assing commands to the component context menu. | |
// Docs: http://docs.unity3d.com/ScriptReference/MenuItem.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NoiseCrime Gist | |
// 2014.06.21 | |
// Unity Version: 3.5.7+ | |
// This script demonstrates how you can use MenuItem to append commands to a script component context menu. | |
// The new commands will be available by right-clicking on a component header or clicking the little cog icon. | |
// Docs: http://docs.unity3d.com/ScriptReference/MenuItem.html | |
// Note: You must use the current class name/type in both the MenuItem and where the context is used in the code. |
NewerOlder