Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit ad7b05f

Browse files
committed
Just disable EventSystem component and not the entire gameobject
1 parent 852ca8e commit ad7b05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UI/ForceUnlockCursor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static void SetEventSystem()
170170

171171
//ExplorerCore.Log("Disabling current event system...");
172172
m_lastEventSystem.enabled = false;
173-
m_lastEventSystem.gameObject.SetActive(false);
173+
//m_lastEventSystem.gameObject.SetActive(false);
174174
}
175175

176176
// Set to our current system
@@ -188,7 +188,7 @@ public static void ReleaseEventSystem()
188188
if (m_lastEventSystem)
189189
{
190190
m_lastEventSystem.enabled = true;
191-
m_lastEventSystem.gameObject.SetActive(true);
191+
//m_lastEventSystem.gameObject.SetActive(true);
192192

193193
m_settingEventSystem = true;
194194
EventSystem.current = m_lastEventSystem;

0 commit comments

Comments
 (0)