21 lines
441 B
C#
21 lines
441 B
C#
|
|
using UnityEditor;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace AutoUI
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// AutoUI 插件入口
|
||
|
|
/// 对应原 panel.js + main.js 的功能
|
||
|
|
/// </summary>
|
||
|
|
public static class AutoUIPlugin
|
||
|
|
{
|
||
|
|
public const string MENU_PATH = "AutoUI/界面生成器";
|
||
|
|
|
||
|
|
[MenuItem(MENU_PATH, priority = 100)]
|
||
|
|
public static void OpenWindow()
|
||
|
|
{
|
||
|
|
AutoUIWindow.ShowWindow();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|