Hi Everyone!
I had trouble finding good information how to get out swipes in different directions, so I fixed one to share to the community!
Feel free to tweak the "0.5f" number to get the right feel for how narrow you want to detect the swipe.
This is for ONE touch, you can add several touches by using a foreach and loop through the Input.touches.
Code is in C#.
Touch:
Swipe in all directions Touch and Mouse
I had trouble finding good information how to get out swipes in different directions, so I fixed one to share to the community!
Feel free to tweak the "0.5f" number to get the right feel for how narrow you want to detect the swipe.
This is for ONE touch, you can add several touches by using a foreach and loop through the Input.touches.
Code is in C#.
Touch:
Code (csharp):