# Drag & drop problems (UMG)

**URL:** <https://forums.unrealengine.com/t/drag-drop-problems-umg/296966>\
**Category:** UI\
**Tags:** drag-and-drop, unreal-engine, bug-report, feedback, Blueprint, question, UMG\
**Created:** [October 23, 2014, 12:40am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966 "2014-10-23T00:40:31Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [October 23, 2014, 12:40am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/1 "2014-10-23T00:40:31Z")

</div>

Hi.

I have three tasks which I can’t solve with current drag&drop in 4.5:

1. When I’m creating default visual (on drag event) it spawns in left upper corner of dragabble object. So, it snaps not under the cursor, but with some shift accordingly. How to place it right under cursor ?

2. Default visual (widget) rendering is horrible: image should be trasnparent. But instead it’s just black in transparent space. Plus image have been some sort of noised and blured.

![18502-defvis.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/2/5925cdd26d84214fec3fa0e162a2b3b7465455ca.png)

And that’s how this widget actually looks like:

![18503-defshould.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/0/e70243422369d585b54d728c0c37a1fdcce2707e.png)

Don’t worry about number in center. It was removed by logic of construction.

1. Is there some sort of “begin on drag over event” and “end on drag event” ? I need to do some stuff with dropable widget right after draged object leaved this dropable widget local space.

---

<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:** [October 23, 2014, 6:41pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/2 "2014-10-23T18:41:16Z")

</div>

Hello ,

I would be more than happy to assist you but first I will need some additional information.

Quick questions:

1. How are your materials set up that you are using for the drag and drop?
2. Can you send a picture of your material blueprint as well as a picture of your UMG setup?
3. What type of file are you using to import the image?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [October 24, 2014, 12:54am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/3 "2014-10-24T00:54:55Z")

</div>

Hi ,

1. I don’t think problem in materials, because regular text box (No name, Empty - captions) have same issues. Background image (orange part) have such material:

 ![18832-mat.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/7/7f73e688d107400a38681272da83b2f109267551.png)

White refresh icon - just regular texture in png format:

![18833-refresh_icon.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/0/af07448206ec7fe433dead3a691650b6595501a7.png)

Both are composed in userwidget, which I creating and using for default visual.

1. Picutre of UMG setup? What did you mean by setup ?
2. PNG format. Solid color picture with alpha chanel as profile. You can check refresh\_icon.png which attached to comment.

---

<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:** [October 24, 2014, 2:30pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/4 "2014-10-24T14:30:43Z")

</div>

Hello ,

I see that the file type that you are using for your sample texture in the material editor is a PNG. Could you try replacing that with a 32 bit TGA version of your current texture sample and let me know if this makes a difference?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [October 27, 2014, 1:14am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/5 "2014-10-27T01:14:43Z")

</div>

As I already said, file format doesn’t matter. Look at the textbox UMG elements. I’ve just created new widget with border and image in it. Image in TGA format. I’ve got same black borders and no transperancy.

---

<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:** [October 27, 2014, 9:34pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/6 "2014-10-27T21:34:55Z")

</div>

Hello ,

I have a couple more questions for you. I am still unable to reproduce this issue.

1. Can you reproduce this issue on a clean project?

2. If you can does this happen with all assets that you try?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [October 30, 2014, 2:21am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/7 "2014-10-30T02:21:50Z")

</div>

1. Yes. Clean project with starter content.
2. Did you mean all textures?  
I’ve created a new widget which should be a default visual:

 ![19460-default.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/7/407519a7b0ab253f58ff50fe8e3f579574c0e52b.png)

Image for this widget:

![19491-test2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/9/26910c444fa3c9251a63b6753171fd27c321ca2f.png)

Settings of import for this image:

 ![19492-test2options.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/8/9b8a2b31339d0bb3bcebbe6931fabe5a734ab85f.png)

How I’m creating default visual, named **drag** :

 ![19493-creating.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/a/ccac76df902b2f089bd8ba6829073e9c065274c0.png)

And that’s the result (black squared image - default visual of current drag operation):

 ![19494-result.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/7/5872145dd847e363d194ad5cafad7c3f3579fff8.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [November 5, 2014, 1:08am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/8 "2014-11-05T01:08:16Z")

</div>

Any suggestions?

---

<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:** [November 5, 2014, 3:23pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/9 "2014-11-05T15:23:32Z")

</div>

Hello ,

I am still unable to reproduce this issue. Could you provide screen shots of all the blueprints that you are using to produce this problem? This will help eliminate any differences we have in the way we have our drag and drop systems set up.

---

<div class="post-metadata">

**Author:** ![Salem\_Saberhagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salem\_Saberhagen](https://forums.unrealengine.com/u/Salem_Saberhagen)\
**Post date:** [November 5, 2014, 4:23pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/10 "2014-11-05T16:23:03Z")

</div>

Got the exact same problem, the drag operation seems to automatically fill the visual with a black background. I first tested just the Texture itself, no distortions but the transparent parts are just black. When I tried with a Material, but that had even more problems because it was on the upper left corner of a small black box and I couldnt fix the scaling or the translucency. Drag Visuals seem to only take things that are directly after the root of a widget so no kind of wrapping worked for me!

---

<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:** [November 5, 2014, 4:25pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/11 "2014-11-05T16:25:02Z")

</div>

Hello ,

After posting earlier I gave it another go and was able to reproduce this issue that you are experiencing. I then filled out a report (UE-5016) and sent it to the developers. Thank you for the time and information that lead to the detection and cataloging of this problem. I will provide updates with an pertinent information as it becomes available.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_945031d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_945031d2](https://forums.unrealengine.com/u/anonymous_user_945031d2)\
**Post date:** [November 6, 2014, 1:05am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/12 "2014-11-06T01:05:48Z")

</div>

Hello .

Thank you!

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [November 10, 2014, 8:23pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/13 "2014-11-10T20:23:49Z")

</div>

I also have this issue as i mentioned on the [Drag & Drop forum thread](https://forums.unrealengine.com/showthread.php?49644-UMG-Drag-amp-Drop-capturing-mouse-events&p=167719&viewfull=1#post167719). The image is always squared and without alpha. If i try to set the Default Drag Visual to a widget i created nothing appears, i have to set to an image widget for it to show like mentioned before.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [November 10, 2014, 9:36pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/14 "2014-11-10T21:36:38Z")

</div>

Apparently you can’t use on the Default Drag Visual a widget that has a canvas as the root, if i just put an image it works ok except for the alpha.

---

<div class="post-metadata">

**Author:** ![gormed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gormed](https://forums.unrealengine.com/u/gormed)\
**Post date:** [December 30, 2014, 11:21am UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/15 "2014-12-30T11:21:13Z")

</div>

Are there any news on this? I am experiencing the same issue, if there is a solution or workaround, it would be nice to know 🙂

---

<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 30, 2014, 2:32pm UTC](https://forums.unrealengine.com/t/drag-drop-problems-umg/296966/16 "2014-12-30T14:32:36Z")

</div>

Hello gormed,

I have recently been able to reproduce this issue. There has been no new and pertinent information about this issue. However, I do have an example of how to achieve a workaround for this issue.

You can find it here: [UMG Drag & Drop (UE 4.6) - UI - Epic Developer Community Forums](https://answers.unrealengine.com/questions/144414/umg-drag-drop-ue-46.html)

This example includes the a downloadable version of the widget that is shown in the pictures. I hope this helps.

Make it a great day
