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");