Touch id,index

Is there diffrence between finger id and touch index? Or touch index is finger id? Or else?

It’s not the same thing. Please read Unity - Scripting API: Touch.fingerId

Lets say i touched the screen with a finger and I set id of that finger to 1. If I remove the finger from the screen and click the screen with the same finger that finger will still have id assinged to it??

I don’t think so, but try just in case. FingerId is useful in multitouch cases, when you’re touching with multiple fingers, fingerId will match the finger while that finger touches the screen, but once you stop touching, that association is lost.

The input system equivalent of this touch / finger information is here:
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.11/manual/Touch.html#enhancedtouchtouch-class

1 Like