From fb668bfb487aff86555a9b97c890a4d911fef973 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 2 Sep 2022 17:03:03 +0800 Subject: [PATCH] Update UIManager.cs --- .../TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs b/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs index f64ac417..ca7fc941 100644 --- a/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs +++ b/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs @@ -34,7 +34,7 @@ namespace TEngine.Runtime.UIModule public UIManager() { - m_uiManagerGo = TResources.Load("UI/UIRoot.prefab"); + m_uiManagerGo = GameObject.Instantiate(Resources.Load("UIRoot")); Object.DontDestroyOnLoad(m_uiManagerGo); m_uiManagerTransform = m_uiManagerGo.transform; m_uiCamera = UnityUtil.FindChildComponent(m_uiManagerTransform, "Camera");