why 2 touches get the same fingerid?
I'm trying to manipulate some objects based on touch.posiiton, but the touches get the same fingerid and it messes the whole thing! I don't know why it does that. Here are more details.
I have a button on screen, that as soon as i touch it, it does the following :
public void OnTouchDown () { touch = Input.GetTouch (Input.touchCount - 1); Debug.Log (touch.fingerId); }
So lets say i click button with index finger. It gets the touch(0) with fingerid 0. Then i slide the finger away, and press button with thumb. It gets the touch(1) with fingerid 1. So far so good. Now it's the part that gets messy. I lift the index/first finger up and press the button with it again. It gets the touch(1), but it also gets the fingerid 1. As a result, i have 2 fingers on screen with the same fingerid.
What i did wrong? Is this supposed to act like that?
Your answer
![](https://koobas.hobune.stream/wayback/20220612092444im_/https://answers.unity.com/themes/thub/images/avi.jpg)