Unity - Multiple Touches on Mobile Device [Input.GetTouch]

Опубликовано: 29 Сентябрь 2024
на канале: Press Start
38,482
783

In this tutorial I explain how to store multiple touches within a custom list to then spawn objects that follow the movement of each touch.
SUBSCRIBE: https://bit.ly/2Js78lE
============
In this video, we cover:
+ 0:30 - Setting Up A Custom List Script
+ 1:25 - Creating a Script to Detect Multiple Touches
+ 2:20 - Creating a While Loop to cycle between touches
+ 2:55 - The three different touch phases we will be using
+ 3:30 - Detecting Touch Start, End and Move
+ 4:10 - Testing our touches on a mobile device
+ 4:50 - Creating a function to spawn our circle prefabs
+ 6:15 - Adding our touches to our list
+ 6:45 - Searching our list and removing our touch after it ends
+ 8:08 - Moving our circle when the touch is moved

COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2018...

UNITY DEVELOPER REMOTE APP:
https://docs.unity3d.com/Manual/Unity...

RELATED VIDEOS REGARDING SCREEN SPACE CONVERSION:
Orthographic:    • Pinch to Zoom and Panning on Mobile i...  
Perspective:    • Unity - Mobile Panning with a Perspec...  

MORE TUTORIALS:
https://pressstart.vip/unity-tutorials