fix: the annoying empty black scene overlay box shown even when nothing is selected
parent
5e6da2e158
commit
bdeeabbbe1
|
@ -102,7 +102,7 @@ namespace Coffee.UIExtensions
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if UNITY_2019_1_OR_NEWER
|
#if UNITY_2019_1_OR_NEWER
|
||||||
SceneView.duringSceneGui += _ => miSceneViewOverlayWindow.Invoke(null, sceneViewArgs);
|
SceneView.duringSceneGui += _ => { if (s_SerializedObject != null) miSceneViewOverlayWindow.Invoke(null, sceneViewArgs); };
|
||||||
#else
|
#else
|
||||||
SceneView.onSceneGUIDelegate += _ =>
|
SceneView.onSceneGUIDelegate += _ =>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue