mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-01-09 10:38:59 +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...");
|
||||
m_lastEventSystem.enabled = false;
|
||||
m_lastEventSystem.gameObject.SetActive(false);
|
||||
//m_lastEventSystem.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
// Set to our current system
|
||||
@ -188,7 +188,7 @@ namespace UnityExplorer.UI
|
||||
if (m_lastEventSystem)
|
||||
{
|
||||
m_lastEventSystem.enabled = true;
|
||||
m_lastEventSystem.gameObject.SetActive(true);
|
||||
//m_lastEventSystem.gameObject.SetActive(true);
|
||||
|
||||
m_settingEventSystem = true;
|
||||
EventSystem.current = m_lastEventSystem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user