Add option to disable EventSystem override

This commit is contained in:
Sinai
2021-05-26 18:02:10 +10:00
parent 041f2938f7
commit 1a26623080
3 changed files with 23 additions and 22 deletions

View File

@ -145,7 +145,7 @@ namespace UnityExplorer.UI
if (InputManager.GetKeyDown(ConfigManager.Force_Unlock_Toggle.Value))
CursorUnlocker.Unlock = !CursorUnlocker.Unlock;
if (EventSystem.current != EventSys)
if (!ConfigManager.Disable_EventSystem_Override.Value && EventSystem.current != EventSys)
CursorUnlocker.SetEventSystem();
UIPanel.UpdateFocus();