给UIModule中UI摄像机赋值

This commit is contained in:
feng
2025-03-12 16:39:44 +08:00
parent c7f3511bd3
commit 7b7b14a8c3

View File

@@ -14,7 +14,7 @@ namespace GameLogic
private bool _enableErrorLog = true;
private readonly Camera _uiCamera = null;
private Camera _uiCamera = null;
private readonly List<UIWindow> _uiStack = new List<UIWindow>(100);
@@ -43,6 +43,7 @@ namespace GameLogic
if (uiRoot != null)
{
_instanceRoot = uiRoot.GetComponentInChildren<Canvas>()?.transform;
_uiCamera = uiRoot.GetComponentInChildren<Camera>();
}
else
{