# Among Us drag and drop mechanic?

**URL:** <https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497>\
**Category:** UI\
**Tags:** drop, drag, unreal-engine, Widget, question, UMG\
**Created:** [October 6, 2020, 4:48pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497 "2020-10-06T16:48:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinR3v](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KevinR3v](https://forums.unrealengine.com/u/KevinR3v)\
**Post date:** [October 6, 2020, 4:48pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/1 "2020-10-06T16:48:17Z")

</div>

Hello everyone i was wondering how can i achieve the mechanic of connecting wires using just widgets?

Right now i got six widgets: 3 on the left side of the screen the others are on the right side. So i need to connect them using some cable, wire or something.

I know that there is a Drag and Drop operation, but it does not track the mouse _while_ dragging.

(I need to implement the exact mechanic that is on Among Us wires task)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 6, 2020, 6:51pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/2 "2020-10-06T18:51:57Z")

</div>

> I know that there is a Drag and Drop  
> operation, but it does not track the  
> mouse while dragging.

Yes it does:

- `on Mouse Move` gets you screen space position:

![317515-screenshot-2020-10-06-195034.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/e/7dee5ae0e4046869abbe57a68c916cd3be4b6baf.jpeg)

- or override `Event Dragged` in the DragDragOP, same data:

![317516-screenshot-2020-10-06-195008.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/8/ab812a331a14363af8d9f309b46b295ecb4e66e6.jpeg)

---

<div class="post-metadata">

**Author:** ![KevinR3v](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KevinR3v](https://forums.unrealengine.com/u/KevinR3v)\
**Post date:** [October 6, 2020, 9:06pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/3 "2020-10-06T21:06:45Z")

</div>

Thanks for the response.

Unfortunately the On Mouse Move event just work on the widget itself, so it was not a solution in this scenario.

Event dragged on the other hand worked like a charm:

 ![317537-screenshot-from-2020-10-06-14-50-29.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/c/01cc61e902892a89df627cf784920cb9a4c4a462.png)

So i called a function inside my widget to draw a debug point:

 ![317538-screenshot-from-2020-10-06-14-51-00.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/a/02a980b2fbf7a12959810223899dd7655364179f.png)

So i know who widget is dragged and where is drop.

Now, i need to put a texture instead of the draw point maybe? a delete all the lines that are not correct?

 ![317539-screenshot-from-2020-10-06-15-04-31.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/4/8a4591d44fcd727ec03b7e903f37202f9b3b56e2.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 7, 2020, 12:13pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/4 "2020-10-07T12:13:32Z")

</div>

Even though it’s rather basic, there are too many screenshots to drop here and it would take time to document it properly. But here’s the project that could be a primer for something like this:

> **[ConnectWires.rar](https://drive.google.com/file/d/10W7o8FS85snn_LxSVWmZx_ech0ksVUnV/view?usp=sharing)**
>
> Google Drive file.

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/9/df91772ca86eec3950145e3dddfd0d9692893b44.gif)](https://gyazo.com/88debcef87ba3802cccca3593f457311)

Feel free to take it apart, use _as is_ or ask questions if things are unclear.

## sus…

---

<div class="post-metadata">

**Author:** ![KevinR3v](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KevinR3v](https://forums.unrealengine.com/u/KevinR3v)\
**Post date:** [October 7, 2020, 6:01pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/5 "2020-10-07T18:01:18Z")

</div>

OMG I really appreciate the help thank you so much!!!

---

<div class="post-metadata">

**Author:** ![ExplodingOwls](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/explodingowls/32/88719_2.png) [@ExplodingOwls](https://forums.unrealengine.com/u/ExplodingOwls)\
**Post date:** [July 6, 2021, 3:07pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/6 "2021-07-06T15:07:26Z")

</div>

Hey Everynone, thank you for the amazing feature. When I tried to import this into my own project, I got this issue:

![343410-teams-mn3wuiz7fs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/a/05add5d5600ade290e17c4cab6c490e0fe0d28fb.png)

Do you know how I can resolve this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 3:12pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/7 "2021-07-06T15:12:50Z")

</div>

Ensure the dispatcher has the correct inputs, compile. Right click this node and Refresh, compile.

* * *

If you copy / paste nodes, Dispatchers will go bonkers:

 ![343421-screenshot-6.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/8/eb89d129bd9590b5c8b55b28e011c3a1fc95c37b.png)

You may need to right click some pins and recombine / split them.

---

<div class="post-metadata">

**Author:** ![ExplodingOwls](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/explodingowls/32/88719_2.png) [@ExplodingOwls](https://forums.unrealengine.com/u/ExplodingOwls)\
**Post date:** [July 6, 2021, 3:41pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/8 "2021-07-06T15:41:22Z")

</div>

Thank you! What an amazingly quick response! That solved every issue regarding wPlug.  
I also ran into an issue with importing wWireBoard, for some reason Event Graph and On Paint are going haywire, but the the On Drag Over function seems fine.

Do you know what the issue might be?

 ![343426-ue4editor-c3qgmp7jxw.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/5/6c5132dc157563c2c9e33ccf4f10de7796bc1cc9.png)

Thanks for all the assistance

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 3:55pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/9 "2021-07-06T15:55:15Z")

</div>

> importing

How are you doing it? Migrating? As in:

> **[Migrating Content](https://docs.unrealengine.com/4.26/en-US/Resources/SampleGames/ARPG/MigratingContent/)**
>
> Showing how to migrate content from any UE4 project into Action RPG.

Copy / paste will not work (well) as you’ll be missing a lot of reference (red) and the actual objects (grey pins).

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 4:04pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/10 "2021-07-06T16:04:11Z")

</div>

I’ll just confirm that migrating those assets…

 ![343427-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/6/7e6754fad1bbbc9ce95fa35c2f6bc0911cac91a3.png)

…works pretty well. And the only thing that needs doing is creating the Wire Board widget:

 ![343428-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/5/7b530c000b3c631ce2277bb371d5938324e9a963.png)

And this very part _can_ be copy / pasted.

---

<div class="post-metadata">

**Author:** ![ExplodingOwls](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/explodingowls/32/88719_2.png) [@ExplodingOwls](https://forums.unrealengine.com/u/ExplodingOwls)\
**Post date:** [July 6, 2021, 5:30pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/11 "2021-07-06T17:30:01Z")

</div>

Hey! Sorry for my late response. Initially I copy pasted the .uasset files.  
Afterwards, I did it through the method you mentioned, but it resulted in the same kinds of issues as I mentioned above.

In the other comment you mentioned that the Wire Board widget needs to be recreated. Is this the wWireBoard widget? I’m not entirely sure where this set of 5 components need to be placed.

An example of an issue in the On Paint issue I am presented with are for example the Starter Plug, when I refresh the node with W Plug as the variable type, it cannot connect to the lower component. Also, a FindPlugOffset component can’t be created, to replace the ‘Find plug wire offset’ function:

 ![343445-ue4editor-kcnamekwal.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/c/adc4663d9d0666ffd1181e2a75f0d9a5d326db14.png)

Besides this, it also misses a lot of variables, even when I migrate it:

![343446-ue4editor-pn3fgbu7rs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/3/3c3cc9836aff2530e3f67e117aa5eb1d70560730.png)

Am I doing something incorrect, given that your migration works properly?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 5:44pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/12 "2021-07-06T17:44:26Z")

</div>

> Is this the wWireBoard widget? I’m not  
> entirely sure where this set of 5  
> components need to be placed.

Anywhere in the Content folder - there’s a step-by-step in the docs link. Not sure about the errors at this point. Consider migrating it. Fixing references manually may not even be possible, you simply do not have those objects. And you do not have the required functions…

_This is not something you can copy / paste._

* * *

Or are you saying that you’re seeing the errors after migration?!

---

<div class="post-metadata">

**Author:** ![ExplodingOwls](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/explodingowls/32/88719_2.png) [@ExplodingOwls](https://forums.unrealengine.com/u/ExplodingOwls)\
**Post date:** [July 6, 2021, 5:57pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/13 "2021-07-06T17:57:01Z")

</div>

> Or are you saying that you’re seeing the errors after migration?!

This is the result after migrating as stated in the documentation, I did not copy paste it.

After migrating it a couple of times, I migrated it into the content folder itself (instead of a child directory which I created for it), which seemed to resolve the issue.

Thank you for all the time you’ve put into assisting me with this.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 7:24pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/14 "2021-07-06T19:24:14Z")

</div>

Could you _test_ it by migrating it to new clean project? I’ve done that below and it just worked.

What you’re you’re showing is not relay _fixable_. The stuff that’s needed simply is not there.

If you cannot migrate, you may need to recreate is one by one.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 7:24pm UTC](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/15 "2021-07-06T19:24:35Z")

</div>

> which seemed to resolve the issue.

Ah, cool! Thanks for the update.
