We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25eaac commit 5b3b5fdCopy full SHA for 5b3b5fd
Core/TouchInputManager.cs
@@ -33,7 +33,7 @@ public class TouchInputManager : MonoBehaviour
33
34
private void Update()
35
{
36
- if (ignoreUI)
+ if (ignoreUI && EventSystem.current != null)
37
38
if (Input.touchCount > 0 && EventSystem.current.currentSelectedGameObject == null)
39
@@ -50,7 +50,7 @@ private void Update()
50
#if UNITY_EDITOR
51
if (useMouse)
52
53
54
55
if (EventSystem.current.currentSelectedGameObject == null)
56
0 commit comments