- Home /
Multitouch loses touch even when finger still on screen.
I have an issue with Unity Touch Input Module. I am trying to implement an app, which requires the user to have multiple fingers on the screen and also detect and act upon when the finger leaves the screen.
However I am having this weird behaviour, where after a certain number of touches, or in other cases the touches being too close/finger shifting, the touch is lost. I have tried to implement this in several ways, including using "PointerUp" event trigger, using Input.Touches[i].phase == TouchPhase.Ended. I even downloaded an asset from the Asset Store which handles touch interfaces and it also produced the same result (not unexpected since looking through their code, it uses the same base classes).
Anyway, here is one implementation of my logic, using TouchPhase.
void Update ()
{
foreach (Touch touch in Input.touches) {
if (touch.phase == TouchPhase.Ended || touch.phase == TouchPhase.Canceled)
Debug.Log ("IKT Touch " + touch.fingerId + " , Phase " + touch.phase);
}
}
I don't think there is any issue with my code, but perhaps there is some underlying settings, configurations that I am missing?
Your answer
Follow this Question
Related Questions
Move 2 objects at the same time 0 Answers
Three finger tap? 1 Answer
I can't change the sprite using the Touch class 0 Answers
Touch Input madness 2 Answers
question about touches for iOS/Android 2 Answers