- Home /
How do you make a button trigger an OnBeginDrag?
Hey -- Newcomer to game dev here -- I'm trying to make a button that, upon clicking and holding click, will immediately add something to their mouse that they can drag around. My only problem is that I need a way to call OnBeginDrag from a function that the button's On Click() will recognize, which needs an input of a PointerEventData. Anyone know how to do this? Am I doing this completely wrong?
Thanks for your help!
Your answer
![](https://koobas.hobune.stream/wayback/20220612092357im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 4.6: Drag and drop 1 Answer
How do I remove action listeners from a button without actually clicking the button? 0 Answers
how to insert hover effect on unity button and active color button when the button is being click ? 0 Answers
UI button mobile - want a button drag to register as a click 0 Answers
Please help !! Custom Button Event Not responding !! 1 Answer