- Home /
Single Tap Registered on Swipe (C#)
Hello unity developer community! I have touch swipe logic in a script. Every time the swipe ends, my tap logic kicks in and registers a single tap. BOO. I've narrowed it down to the filter on my tap statement. Does anyone have recommendations of how to better handle a single tap when swipe gestures exist as well?
mytouch = Input.GetTouch(0);
if(mytouch.phase == TouchPhase.Ended && mytouch.tapCount == 1){
}Debug.Log("I tapped that");
Comment
Your answer
Follow this Question
Related Questions
Custom touch phase? 0 Answers
Tap for variable height jump, swipe to dash 1 Answer
Unity 2D. How to swipe without detecting tap? 2 Answers
Differentiating a tap from a swipe? 1 Answer
Detect whether a tap is a swipe up gesture or just a tap 0 Answers