mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
给UIModule中UI摄像机赋值
This commit is contained in:
@@ -14,7 +14,7 @@ namespace GameLogic
|
|||||||
|
|
||||||
private bool _enableErrorLog = true;
|
private bool _enableErrorLog = true;
|
||||||
|
|
||||||
private readonly Camera _uiCamera = null;
|
private Camera _uiCamera = null;
|
||||||
|
|
||||||
private readonly List<UIWindow> _uiStack = new List<UIWindow>(100);
|
private readonly List<UIWindow> _uiStack = new List<UIWindow>(100);
|
||||||
|
|
||||||
@@ -43,6 +43,7 @@ namespace GameLogic
|
|||||||
if (uiRoot != null)
|
if (uiRoot != null)
|
||||||
{
|
{
|
||||||
_instanceRoot = uiRoot.GetComponentInChildren<Canvas>()?.transform;
|
_instanceRoot = uiRoot.GetComponentInChildren<Canvas>()?.transform;
|
||||||
|
_uiCamera = uiRoot.GetComponentInChildren<Camera>();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user