using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace A
{
public class MenuItems
{
[MenuItem("Assets/_test/a", false, 1)]
static void a()
{
}
[MenuItem("Assets/_test/MainWindow", false, 1)]
static void ShowMainWindow()
{
Window window = EditorWindow.GetWindow<Window>();
window.titleContent = new GUIContent("WindowTitleName");
window.Show();
}
}
public class Window: EditorWindow
{
void OnGUI()
{
}
}
}
网友评论