using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class MenuTest
{
//%f代表ctrl+f快捷键 &代表alt #代表shift
[MenuItem("MenuTest/TestMenu11 %f")]
static void TestMenu11()
{
Debug.Log("点击了TestMenu11");
}
[MenuItem("MenuTest/TestMenu11/TestMenu14")]
static void TestMenu14()
{
Debug.Log("点击了TestMenu12");
}
[MenuItem("MenuTest/TestMenu11/TestMenu12/TestMenu13")]
static void TestMenu13()
{
Debug.Log("点击了TestMenu03");
}
[MenuItem("Assets/TestMenu01/TestMenu04")]
static void TestMenu04()
{
Debug.Log("点击了TestMenu04");
}
}
unity 窗口菜单和右键菜单的添加
猜你喜欢
转载自blog.csdn.net/chh19941125/article/details/73788191
今日推荐
周排行