filmov
tv
detect Swipe NEW Input system ( touch / mouse ) | how to detect swipe in unity with New Input system

Показать описание
in this video we'll take a look at swipe detection with the new input system in unity.
you can detect touch and mouse swipes on the screen and get the direction of the swipe in a normalized vector 2.
you can also change the sensitivity of the swipe.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
time stamps
0:00 intro
0:55 detect touch
2:40 detect swipe
5:15 creating an event
7:10 input actions
8:00 demo