Question by
tomatohorse · Jul 08, 2020 at 10:17 PM ·
uibuttonmobiletouch controls
How can I make mobile UI buttons fire when first touched rather than released?
The standard button behavior is to fire after they have been pressed AND THEN released. I need it to fire the frame it is pressed. Ideally, I'd like to distinguish these 3 states:
1) The first frame the button was touched 2) Is the button currently being held? 3) the frame the button was released.
I have tried using the mouse-is-touch behavior with OnMouseButtonDown, etc. but that returns true no matter where the mouse / touch is.
Comment