# How to set on drop?

**URL:** <https://forums.unrealengine.com/t/how-to-set-on-drop/621969>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Widget, UE4, question, Blueprint\
**Created:** [August 5, 2022, 10:50am UTC](https://forums.unrealengine.com/t/how-to-set-on-drop/621969 "2022-08-05T10:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [August 5, 2022, 11:17am UTC](https://forums.unrealengine.com/t/how-to-set-on-drop/621969/10 "2022-08-05T11:17:48Z")

</div>

Cool. So this bit…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/5/7a50cd99cce64cc5282a9beed079c8fc40412a2c.png)

…will not work. We need to translate the 2d coords into 3d. Either have a look at the link I posted above which translates the widget size into another world size or deproject:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/8/438da9c1eef1436d090a289135d25a4f83079543.png)

Alternative way to deproject:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/d/97d638df9f72151aafb1b5eaf9145644a0b52106.png)

I have to assume _a lot_ here - no clue how the world we’re dealing with looks like - suggesting generic ideas only.

Do note that the way player controller works while a widget has focus is convoluted. Have a look here for more info:

> [@Getting Mouse Position During Drag and Drop UMG](https://forums.unrealengine.com/t/getting-mouse-position-during-drag-and-drop-umg/85760/15):
>
> Because it's undocumented, arcane knowledge obtainable only by those knowing a secret handshake. The below assumes you have overridden and using a Game Mode, a Player Controller and created a custom Drag & Drop Operation. in the Player Controller A Custom Event converts screen space to world space via deprojection and sets actor’s position: in the Custom Drag & Drop Operation blueprint Event Dragged spits out screen space coordinates and feeds them to an Event Dispatcher, we…

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-set-on-drop/621969)._
