/// <summary> /// 显示或聚焦脚本创建窗口。 /// </summary> public static void ShowScriptCreateWindow() { var targetDir = AiukEditorIOUtility.GetSingleSelectDir(); if (targetDir == null) { return; } CsCreateWindow.ShowWindow(targetDir); }
public static void ShowWindow(string targetDir) { if (_Window != null) { _Window.Focus(); return; } _Window = GetWindow <CsCreateWindow>(); _Window.titleContent = new GUIContent("CS创建器"); _Window.Init(targetDir); }
private void OnDestroy() { _Window = null; }