mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 14:17:51 +08:00
Just disable EventSystem component and not the entire gameobject
This commit is contained in:
parent
852ca8e9eb
commit
ad7b05f721
@ -170,7 +170,7 @@ namespace UnityExplorer.UI
|
|||||||
|
|
||||||
//ExplorerCore.Log("Disabling current event system...");
|
//ExplorerCore.Log("Disabling current event system...");
|
||||||
m_lastEventSystem.enabled = false;
|
m_lastEventSystem.enabled = false;
|
||||||
m_lastEventSystem.gameObject.SetActive(false);
|
//m_lastEventSystem.gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set to our current system
|
// Set to our current system
|
||||||
@ -188,7 +188,7 @@ namespace UnityExplorer.UI
|
|||||||
if (m_lastEventSystem)
|
if (m_lastEventSystem)
|
||||||
{
|
{
|
||||||
m_lastEventSystem.enabled = true;
|
m_lastEventSystem.enabled = true;
|
||||||
m_lastEventSystem.gameObject.SetActive(true);
|
//m_lastEventSystem.gameObject.SetActive(true);
|
||||||
|
|
||||||
m_settingEventSystem = true;
|
m_settingEventSystem = true;
|
||||||
EventSystem.current = m_lastEventSystem;
|
EventSystem.current = m_lastEventSystem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user