diff --git a/Assets/Scripts/UI/Panel/PlayToolPanel.cs b/Assets/Scripts/UI/Panel/PlayToolPanel.cs index ae9383823..8b2077f24 100644 --- a/Assets/Scripts/UI/Panel/PlayToolPanel.cs +++ b/Assets/Scripts/UI/Panel/PlayToolPanel.cs @@ -246,8 +246,15 @@ namespace AibisDream.UI { _timeFlowsVersion++; - _fullScreenImage.FadeOut(0.1f); - _showObjImage.FadeOut(0.1f); + // SceneLoader unloads scenes with DOTween.KillAll(). Do not rely on a + // tween completion callback to deactivate these raycast targets: if + // that tween is killed, an invisible full-screen image blocks the UI. + _fullScreenImage.DOKill(); + _fullScreenImage.color = Color.clear; + _fullScreenImage.gameObject.SetActive(false); + + _showObjImage.DOKill(); + _showObjImage.color = Color.clear; _showObjPanel.SetActive(false); _timeTurner.ForceStop(); @@ -299,4 +306,4 @@ namespace AibisDream.UI yield return new WaitUntil(() => !_warningWindow.gameObject.activeSelf); } } -} \ No newline at end of file +}