Detecting One Finger Gestures
In this tutorial I would like to show you how to detect one finger gestures like a single and double taps as well as swipes. If a single tap is detected the ray cast function will check if there was a hit on a game object in the scene, in this case the object that was selected will be set as the active game object. If there was a double tap the current active object will be set to the position of the fingers. If a touch is not stationary (because the finger moved) the script is checking for a swipe from all four sites. If you want you could also apply different functions instead, its just up to you. This .zip Folder contains everything you need for recreating the project yourself or for importing mine into your own Unity-Project.