From 7b7b14a8c32fbf8175bd2143d5273518af5e88fd Mon Sep 17 00:00:00 2001 From: feng Date: Wed, 12 Mar 2025 16:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99UIModule=E4=B8=ADUI=E6=91=84=E5=83=8F?= =?UTF-8?q?=E6=9C=BA=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs index 4d74dbb8..0606e0ee 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs @@ -14,7 +14,7 @@ namespace GameLogic private bool _enableErrorLog = true; - private readonly Camera _uiCamera = null; + private Camera _uiCamera = null; private readonly List _uiStack = new List(100); @@ -43,6 +43,7 @@ namespace GameLogic if (uiRoot != null) { _instanceRoot = uiRoot.GetComponentInChildren()?.transform; + _uiCamera = uiRoot.GetComponentInChildren(); } else {