Hi, I would like to take the position of a button under the cursor while a button is being dragged over my widget.
What is my solution:
- OnHovered ButtonToSet i set an integer variable to 0 (first position on my inventory).
- On Touch Started drag is detected
- On Drag Detected i get the brush of my ButtonToDrag and create Drag And Drop Operation.
- On Drop i get the list of buttons in my inventory picking the Hovered one and i set his texture the same as ButtonToDrag.
The problem is that when i drag my ButtonToDrag, the event OnHovered doesn’t work.
Any suggest?