From f8cf4aec4454150f843c1b7e453f592640f9e9b6 Mon Sep 17 00:00:00 2001 From: Bamdad Bastani Date: Mon, 29 Aug 2022 23:36:18 +0430 Subject: [PATCH] Fixed the annoying empty black scene overlay box shown even when nothing is selected. --- Scripts/Editor/UIParticleEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Editor/UIParticleEditor.cs b/Scripts/Editor/UIParticleEditor.cs index cf9ccc1..dfea488 100644 --- a/Scripts/Editor/UIParticleEditor.cs +++ b/Scripts/Editor/UIParticleEditor.cs @@ -102,7 +102,7 @@ namespace Coffee.UIExtensions #endif #if UNITY_2019_1_OR_NEWER - SceneView.duringSceneGui += _ => miSceneViewOverlayWindow.Invoke(null, sceneViewArgs); + SceneView.duringSceneGui += _ => { if (s_SerializedObject != null) miSceneViewOverlayWindow.Invoke(null, sceneViewArgs); }; #else SceneView.onSceneGUIDelegate += _ => #endif