Babybus-u3d技术交流-ContextMenu 上下文菜单(一)
[http://game.ceeger.com/Script/Attributes/ContextMenu.html
[http://docs.unity3d.com/ScriptReference/MenuCommand-context.html
class ContextTesting : MonoBehaviour
{
///添加一个环境菜单名叫"Do Something"在添加了脚本的inspector(检视面板)
[ContextMenu("Do Something")]
void DoSomething()
{
Debug.Log("Perform operation");
}
}