Tutorial by Examples

To detect a touch in Unity it's quite simple we just have to use Input.GetTouch() and pass it an index. using UnityEngine; using System.Collections; public class TouchExample : MonoBehaviour { void Update() { if (Input.touchCount > 0 && Input.GetTouch(0).phase == Touch...

Page 1 of 1