From bdeeabbbe140b0ba80fac7ac477874c2467d3a16 Mon Sep 17 00:00:00 2001 From: Bamdad Bastani Date: Mon, 29 Aug 2022 23:36:18 +0430 Subject: [PATCH] fix: 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 @@ static void Init() #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