22 lines
787 B
C#
22 lines
787 B
C#
|
using System.Linq;
|
|||
|
using UnityEditor;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace AlicizaX.UI.Editor
|
|||
|
{
|
|||
|
public static class UIGenerateEditorTool
|
|||
|
{
|
|||
|
[MenuItem("GameObject/UI工具/热更工程UI代码", priority = -1)]
|
|||
|
public static void GenerateHotfixUIScript()
|
|||
|
{
|
|||
|
UIGenerateWindow.ShowWindow(Selection.gameObjects.FirstOrDefault(),UIGenerateConfiguration.Instance.UIScriptGenerateConfig.HotFixProjectUIScriptGenerateData);
|
|||
|
}
|
|||
|
|
|||
|
[MenuItem("GameObject/UI工具/主工程UI代码", priority = -1)]
|
|||
|
public static void GenerateMainUIScript()
|
|||
|
{
|
|||
|
UIGenerateWindow.ShowWindow(Selection.gameObjects.FirstOrDefault(),UIGenerateConfiguration.Instance.UIScriptGenerateConfig.MainProjectUIScriptGenerateData);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|