- Home /
How to handle 5 touches at a time?
Hi, I want to handle 5 Touches in the screen.And i also want Every events of every touches means(touchdown,touchup,touchstay) of every number of touches. But i don't want to drag/swap that particular touch/touched object. Thanking To You.
Answer by Petrol · Aug 08, 2014 at 03:27 PM
You can access every touches with Input.touches and then get the current phase for each of them.
Answer by contab009 · Aug 08, 2014 at 03:25 PM
I don't really understand exactly what you mean. But I can try to answer :
If you want to manipulate the touches, you can use Input.touches (look at the example) : docs.unity3d.com/ScriptReference/Input-touches.html
You can also use Input.GetTouch(i), i ranging from 0 to 4 in your case, with 5 touches. docs.unity3d.com/ScriptReference/Input.GetTouch.html
Also look at the Touch class : docs.unity3d.com/ScriptReference/Touch.html, more specifically at Touch.phase.
I hope I helped you.
Your answer
Follow this Question
Related Questions
[HELP] BCE0022: Cannot convert 'UnityEngine.Vector3' to 'UnityEngine.GameObject'. 1 Answer
Hide the ImageTraget in Real world 0 Answers
touch.phase == TouchPhase.Canceled not worked 1 Answer
Texture2d.Readpixel slow down performance while stand-alone exe is minimize 0 Answers
Trying to drag an object with touch using Rigidbody2D.MovePosition 1 Answer