- Home /
UI button mobile - want a button drag to register as a click
Hi,
See image - I've created a button which appears like a draggable knob. This is for mobile by the way. Note, I want the button to be clickable whether its touched on the knob itself or the words, so all the text and images are parented to a single game object, and the parent has a hit area covering all of it.
The problem: sometimes if you drag and release, it fails to call the button click. I want it to call the same function whether its a click or drag and release.
How do I fix?
Thanks in advance.
Your answer
Follow this Question
Related Questions
Highlighted buttons stay highlighted when I deactivate a canvas. No way to unhighlight them. 1 Answer
Cannot click on a button while Drag Events are called 2 Answers
I want to change the fire button when I change the weapon. 0 Answers
why won't my add button script work?!? (help appreciated) 2 Answers
Issue with spawning buttons and assigning listeners 1 Answer