public int fingerId ;

Descripción

El índice único para el tacto.

Todos los toques actuales se informan en arreglo Input.touches o utilizando la función Input.GetTouch con el índice del arreglo equivalente. Sin embargo, no se garantiza que el índice de arreglo sea el mismo de un frame a otro. El valor fingerId, sin embargo, se refiere consistentemente al mismo toque a través de frames. Este valor de identificación es muy útil cuando se analizan los gestos y es más confiable que la identificación de los dedos por su proximidad a la posición anterior, etc.

Touch.fingerId is not the same as "first" touch, "second" touch and so on. It is merely a unique id per gesture. You cannot make any assumptions about fingerId and the number of fingers actually on screen, since virtual touches will be introduced to handle the fact that the touch structure is constant for an entire frame (while in reality the number of touches obviously might not be true, e.g. if multiple tappings occur within a single frame).