Skip to content

Commit b09b4c6

Browse files
committed
优化
1 parent e51c8e3 commit b09b4c6

File tree

1 file changed

+3
-0
lines changed
  • UnityEditorExtension/MultiEditorWindow/Assets/Editor

1 file changed

+3
-0
lines changed

UnityEditorExtension/MultiEditorWindow/Assets/Editor/MainWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static void Popup()
2222
window = EditorWindow.GetWindow(typeof(MainWindow), true, "多重窗口编辑器") as MainWindow;
2323
window.minSize = minResolution;
2424
window.Init();
25+
EditorWindowMgr.AddEditorWindow(window);
2526
window.Show();
2627
}
2728

@@ -30,6 +31,8 @@ public static void Popup()
3031
/// </summary>
3132
private void Init()
3233
{
34+
Priority = 1;
35+
3336
labelStyle = new GUIStyle();
3437
labelStyle.normal.textColor = Color.red;
3538
labelStyle.alignment = TextAnchor.MiddleCenter;

0 commit comments

Comments
 (0)