public static void MakeUIItemCode() { ChangeUIScene(); // UICreateWnd wnd = EditorWindow.GetWindow <UICreateWnd>("配置序列化工具"); wnd.minSize = new Vector2(200, 250); string[] allCfg = UITool.GetAllItem(); wnd.SetCfg(allCfg, false); }
public static void MakeUIWndCode() { ChangeUIScene(); // string[] allCfg = UITool.GetAllWnd(); UICreateWnd wnd = EditorWindow.GetWindow <UICreateWnd>("UI界面代码生成工具"); wnd.minSize = new Vector2(200, 250); wnd.SetCfg(allCfg, true); }