# UI drag and drop at a specific location in the 3d world.

**URL:** <https://forums.unrealengine.com/t/ui-drag-and-drop-at-a-specific-location-in-the-3d-world/676587>\
**Category:** UI\
**Tags:** unreal-engine, UE5-0, Widget, question, Blueprint, UMG\
**Created:** [October 25, 2022, 9:12am UTC](https://forums.unrealengine.com/t/ui-drag-and-drop-at-a-specific-location-in-the-3d-world/676587 "2022-10-25T09:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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 28, 2022, 12:25pm UTC](https://forums.unrealengine.com/t/ui-drag-and-drop-at-a-specific-location-in-the-3d-world/676587/14 "2022-10-28T12:25:59Z")

</div>

> [@DheerajR47](#):
>
> And just to summarise for the different cards I’ll have to make 4 different a3dcard BP and 4 different slot BP with enums equipped on both to check if they are the same type.

1 CardBP and 1 SlotBP and you instantiate each 4 times but with different values. For slots you can use a child actor component and have it instantiate the actor automatically. So you’d just add 4 components to the board.

I mean, it’s only 4 - **ever** , you can just plop down 4 slot actors in the scene and set their enumeration values manually.

> One small doubt I have different cards should I add them all to a widget and then call that widget in the player character BP would that solve the issue ?

Not sure what the _issue_ is. The player can spawn the cards.

* * *

Also, if you’re curious how a matching enumeration logic can be set up, you can have a look here:

> [@Among Us drag and drop mechanic?](https://forums.unrealengine.com/t/among-us-drag-and-drop-mechanic/472497/4):
>
> 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: [[Image from Gyazo]](https://gyazo.com/88debcef87ba3802cccca3593f457311) Feel free to take it apart, use as is or ask questions if things are unclear. sus…

It’s a somewhat similar system where only the correct colour is allowed. In your case, you’d allow all matches but the ones line up correctly would produce greater rewards.

---

_[View the full topic](https://forums.unrealengine.com/t/ui-drag-and-drop-at-a-specific-location-in-the-3d-world/676587)._
