Download

Drag and Drop

Hi,
I wanted to drag the widget when left mouse button is pressed and drag event detected. When left mouse button released, drop the widget on the mouse’s released position. I also want to restrict the widget drag-able area.

I tried to this. By creating the UMG_Item and UMG_Slot wiget blueprints. Where UMG_Item is the drag-able widget and the UMG_Slot where I drop the drag-able widget.

Here are my blueprints.

On drag detected event of UMG_Item
a6aa95f74a34d13f47e616cc8bb8a7839aa8d04a.jpeg

Mouse Button down event of UMG_Item
98bbb9b25ab1c522700715ce4f0caf4c7e848b0e.jpeg

On drop event of UMG_Slot

In above example Every time I need to drop the widget on the UMG_Slot so that it will add the children to the wrapbox.

Now I want when I drop the widget on the mouse’s released position. The widget will stay at mouse released position. How do I do that ?