Game Developer Resources

Latest Update

Multiple Touch Inputs
How To Store and Manage Multiple Touches in Unity
November 16, 2018

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. 

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
Read Full Post

Recent Posts