mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
给UIModule中UI摄像机赋值
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user