From 21f350a84e8008cd2f4276c5ad80a40c501fde45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?NKG=E4=B8=B6MadLife?= <1778139321@qq.com> Date: Wed, 27 Jul 2022 00:19:23 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E8=B0=83=E6=95=B4=E7=BC=A9?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/YooAsset/Editor/EditorTools.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/YooAsset/Editor/EditorTools.cs b/Assets/YooAsset/Editor/EditorTools.cs index f475b1c..f91c041 100644 --- a/Assets/YooAsset/Editor/EditorTools.cs +++ b/Assets/YooAsset/Editor/EditorTools.cs @@ -213,12 +213,12 @@ namespace YooAsset.Editor public static void FocusUnitySceneWindow() { EditorWindow.FocusWindowIfItsOpen(); + } + public static void CloseUnityGameWindow() + { + System.Type T = Assembly.Load("UnityEditor").GetType("UnityEditor.GameView"); + EditorWindow.GetWindow(T, false, "GameView", true).Close(); } - public static void CloseUnityGameWindow() - { - System.Type T = Assembly.Load("UnityEditor").GetType("UnityEditor.GameView"); - EditorWindow.GetWindow(T, false, "GameView", true).Close(); - } public static void FocusUnityGameWindow() { System.Type T = Assembly.Load("UnityEditor").GetType("UnityEditor.GameView");