using UnityEditor; public class TestCode: Editor { [MenuItem("Test/测试")] public static void Test() { } }