# UMG Drag & Drop (UE 4.6)

**URL:** <https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051>\
**Category:** UI\
**Tags:** drop, drag, unreal-engine, question, Blueprint, UMG\
**Created:** [December 9, 2014, 9:39am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051 "2014-12-09T09:39:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 9, 2014, 9:39am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/1 "2014-12-09T09:39:47Z")

</div>

How to use Drag & Drop? How i can do the same drag and drog that on screenshot?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/5/4f5071f4172e9f8f5005b306cde8b9bd46b3a512.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 9, 2014, 10:03pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/2 "2014-12-09T22:03:56Z")

</div>

Hey, anybody here?

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [December 10, 2014, 7:15am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/3 "2014-12-10T07:15:59Z")

</div>

This thread explains it pretty well: [UMG - Drag&Drop capturing mouse events. - Blueprint - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?49644-UMG-Drag-amp-Drop-capturing-mouse-events)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [December 10, 2014, 4:35pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/4 "2014-12-10T16:35:29Z")

</div>

Hi ,

Please do not bump threads that have not gone unanswered for longer than 4 days. This clutters the answerhub and makes it difficult to assist anyone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 10, 2014, 10:00pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/5 "2014-12-10T22:00:39Z")

</div>

Hello ,

I have an example widget that can get you started. The widget that is in the attached file can be placed in your project’s blueprint folder (It is from a 4.6 project). You can then open up the project and go from there. You will need to add it to viewport. **\>\>** [Drag and Drop Widget (This link is the complete widget)][1] **\<\<**

My Event Graph:

In my example I am running things from a tick event. As you can see there are three images in the graph. These are what is being moved and parented to another canvas panel. The canvas panel is the one by its self in a comment box.

 ![23604-dndhelp1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/1/7e18168402b3f9dd59acd45b7da7ed47a359ad6d.png)

DragNDropFun:

This is my custom function when it is expanded. I have detailed what all of the different sections do. Currently the output pins are not working correctly due to a known issue, however this can be worked around.

 ![23605-dndhelp2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/9/5597db4f59630cbea7fdf060fe4a634654d71178.png)

Checking Macro:

This is the “Checking Macro” after it has been expanded. This basically checks to make sure that the widget that is being hovered over is the only one that moves. After then it is sure that you have the right widget it then ignores the “Is hovered node” for smoother dragging.

 ![23606-dndhelp3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/3/c73b80e4e1d2a32102be7db1b21973084f86d9f7.png)

This is the mouse down function that can be found on the left under the mouse section of the “My Blueprints” panel in your widget. It is setting a boolean value that tell the function that the mouse is down.

Note: The On mouse down function looks the exact same except that the boolean is unchecked (setting it to false)

 ![23607-dndhelp4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/a/39aa149a510133f5b62bd6bf7d928f16a6b81ba9.png)

I hope this helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 10, 2014, 10:23pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/6 "2014-12-10T22:23:31Z")

</div>

Thanks. I will try it and reply.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 10, 2014, 10:24pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/7 "2014-12-10T22:24:33Z")

</div>

This thread is don’t help me. I tried to do so as described in this topic. Nothing came, because there is nothing particularly shown and described.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 11, 2014, 12:37am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/8 "2014-12-11T00:37:18Z")

</div>

Can you add DragNDropFun screenshot in highest resolution?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 11, 2014, 12:49am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/9 "2014-12-11T00:49:23Z")

</div>

Ok. Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 11, 2014, 3:16pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/10 "2014-12-11T15:16:28Z")

</div>

Hello ,

I didn’t think a high resolution screen shot would be necessary because the widget is provided in the very first part of the post. You can simply double click the function in the provided file( Drag and Drop Widget ) to expand it and see the inner workings of the function. Just to be clear, the attached file is the entirety of the widget shown in the pictures above. I posted another link to it above in this post.

**Note:** To use the widget you can navigate to the content folder of your project and place it there after it is unzipped. If you have the engine installed in the default directory this folder can be found by going to **Documents \> Unreal Projects \> Your project \> Content**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 11, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/11 "2014-12-11T20:22:00Z")

</div>

Thank you, I do not get enough sleep lately. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 11, 2014, 11:00pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/12 "2014-12-11T23:00:41Z")

</div>

Good, but like all translate into automatic mode? How do I know what a widget is now under the pointer?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 12, 2014, 2:19pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/13 "2014-12-12T14:19:04Z")

</div>

Hello ,

The short answer is that you can use the “Is Hovered” node. This returns true when the pointer is over a widget. However, I have also added an image to try and explain a little further how my function works. I hope this answers your question.

Selection break down for my function:

 ![23795-selectionexplanation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/9/8f961cab02883ace82269d483dfe828bcc41a255.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 13, 2014, 12:26am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/14 "2014-12-13T00:26:35Z")

</div>

Thanks for this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [December 14, 2014, 2:42am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/15 "2014-12-14T02:42:07Z")

</div>

When I have already dragged widget, the functions “such that” does not work when you drag a widget to the window in which I would like him to give up, so I can not figure out how to determine which window over my dragged widget.

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [December 14, 2014, 4:01am UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/16 "2014-12-14T04:01:16Z")

</div>

> **[UMG - Drag&Drop capturing mouse events.](https://forums.unrealengine.com/showthread.php?49644-UMG-Drag-amp-Drop-capturing-mouse-events&p=164942&viewfull=1#post164942)**
>
> I have just spend 2h trying to get simple mouse events working. Like change text over text block when mouse enter widget. But so far without success. I have Drag&Drop working with Slate in C++, and tried to get something working in UMG now. So...

That thread post specifically shows how is done in example. You just need the owning actor for step #2.

---

<div class="post-metadata">

**Author:** ![walldiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@walldiv](https://forums.unrealengine.com/u/walldiv)\
**Post date:** [March 20, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/17 "2015-03-20T22:57:49Z")

</div>

Doing this tutorial crashes my engine when pressing escape in the editor to come out of PLAYMODE… any suggestsions or previous experience/fix with this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 23, 2015, 5:24pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/18 "2015-03-23T17:24:35Z")

</div>

Hello walldiv,

I was unable to reproduce this issue on my end. I have a few questions for you that will help narrow down your issue.

Quick questions:

1. What version of the engine are you using?
2. Can you reproduce this in a clean project?
3. If so, could you provide a detailed list of steps to reproduce this issue on our end?

---

<div class="post-metadata">

**Author:** ![Calcrafter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calcrafter](https://forums.unrealengine.com/u/Calcrafter)\
**Post date:** [July 2, 2015, 2:22pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/19 "2015-07-02T14:22:10Z")

</div>

Sorry for reviving this thread, but is there a way to get the coordinates of the moved widget? If i break down the location vector it gives me -138 & -159, which I can absolutely understand. While the widget is moved I have access to the real coords (Location X & Location Y pins), but I need them as an output in the event graph.

If you know what I mean,  
please help 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 2, 2015, 2:32pm UTC](https://forums.unrealengine.com/t/umg-drag-drop-ue-4-6/301051/20 "2015-07-02T14:32:30Z")

</div>

Hello Calcrafter,

I would use the “Slot as Canvas Slot” and then use pull off of this node and get the position of the widget. I hope that this info helps.

![48831-slotascanvasslothelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/8/e2854238cc5e4b04702420b937d677e4ba9ae63e.png)

As a side **NOTE** : this thread is fairly antiquated and the link provided by CodeSpartan would be a better way to do the drag and drop system.

Make it a great day
