mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Just disable EventSystem component and not the entire gameobject
This commit is contained in:
1 parent
852ca8e9eb
commit
ad7b05f721
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user