mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update UIModule.cs
This commit is contained in:
@@ -92,7 +92,7 @@ namespace TEngine
|
|||||||
}
|
}
|
||||||
else if (m_dontDestroyUIRoot)
|
else if (m_dontDestroyUIRoot)
|
||||||
{
|
{
|
||||||
DontDestroyOnLoad(m_InstanceRoot.parent);
|
DontDestroyOnLoad(m_InstanceRoot.parent !=null ? m_InstanceRoot.parent : m_InstanceRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_InstanceRoot.gameObject.layer = LayerMask.NameToLayer("UI");
|
m_InstanceRoot.gameObject.layer = LayerMask.NameToLayer("UI");
|
||||||
|
Reference in New Issue
Block a user