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 445db66 commit 6e21421Copy full SHA for 6e21421
ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs
@@ -84,7 +84,8 @@ private void NewTouchInput(TouchControl control)
84
int id = control.touchId.ReadValue();
85
86
// Sometimes the Began phase is detected twice. The redundant one needs to be filtered out
87
- if (m_HighlightPool.Find(id.ToString()) != null) return;
+ if (m_HighlightPool.Find(id.ToString())?.gameObject?.activeSelf ?? false)
88
+ return;
89
90
Vector2 pos = Camera.main.ScreenToWorldPoint(control.position.ReadValue());
91
0 commit comments