# How to detect a successful Drag-Drop operation on the drag side.

**URL:** <https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943>\
**Category:** Blueprint\
**Tags:** drag-and-drop, unreal-engine, Widget, question\
**Created:** [June 8, 2024, 8:50am UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943 "2024-06-08T08:50:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [June 8, 2024, 8:50am UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/1 "2024-06-08T08:50:10Z")

</div>

I’m trying to create a system where equipping an item from the inventory reduces the stock of inventory left.  
Equipment is added by dragging it from your inventory and dropping it onto the target.  
Since I don’t want the drop side to need to have a reference to the inventory, I want the drag object to send an event directly to the inventory indicating whether the drop was successful.  
Is there any way to do this?

---

<div class="post-metadata">

**Author:** ![Cestarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cestarian](https://forums.unrealengine.com/u/Cestarian)\
**Post date:** [June 8, 2024, 3:03pm UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/2 "2024-06-08T15:03:05Z")

</div>

I would use interfaces, they’re the perfect solution for sending signals like this.

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [June 9, 2024, 3:51am UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/3 "2024-06-09T03:51:41Z")

</div>

I know interface is a good solution to send a signals.  
But I’m having trouble detecting if the drop was successful on the drag side before sending signals.  
OnDrop detect signals on Drop side.

---

<div class="post-metadata">

**Author:** ![Cestarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cestarian](https://forums.unrealengine.com/u/Cestarian)\
**Post date:** [June 9, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/4 "2024-06-09T15:22:13Z")

</div>

i don’t really have enough data to help u more than to suggest interfaces. I imagine you’re using some ui elements, you should be able to detect which ui element the mouse is above when the mouse key is released and use that to know if it was successful or not. If ur not using ui widgets, you could also try doing a trace from the cursor to see what you’re above.

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [June 10, 2024, 5:35am UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/5 "2024-06-10T05:35:03Z")

</div>

Tracing from the cursor is a good idea!  
I didn’t think of that. I’ll try that soon.  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 10, 2024, 5:35am UTC](https://forums.unrealengine.com/t/how-to-detect-a-successful-drag-drop-operation-on-the-drag-side/1894943/6 "2024-07-10T05:35:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
