- Home /
Question by
venay0 · Jun 13, 2020 at 10:27 PM ·
uitoucheventsystem
How to get the fingerID (Touch) that is pressing a specific UI button.
I want to displace a button along with the screen position that is pressing on it.
However, having multiple touches at the same time results in wanky behaviour.
So I want to limit the button's movement to the touch that started it.
I'm aware of the PointerEventData.pointerId but I couldn't figure out how to use it.
Comment
Your answer
Follow this Question
Related Questions
Detect UI Button Click Event in Update method 3 Answers
EventSystem not detecting all UI elements 1 Answer
EventSystem - all touches have the same ID 3 Answers
Check UI panel touched after OnEnable()? 0 Answers
Input registering random touches 1 Answer