# Spawning an object on "On Drag Cancelled"... spawns in weird locations

**URL:** <https://forums.unrealengine.com/t/spawning-an-object-on-on-drag-cancelled-spawns-in-weird-locations/253644>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 1, 2021, 3:03pm UTC](https://forums.unrealengine.com/t/spawning-an-object-on-on-drag-cancelled-spawns-in-weird-locations/253644 "2021-10-01T15:03:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 1, 2021, 3:49pm UTC](https://forums.unrealengine.com/t/spawning-an-object-on-on-drag-cancelled-spawns-in-weird-locations/253644/4 "2021-10-01T15:49:39Z")

</div>

And here’s a simpler alternative if you do not need to drag a widget, just spawn an actor:

> [@Dragging 3D object 'out of' a UI button but position not updating when holding](https://forums.unrealengine.com/t/dragging-3d-object-out-of-a-ui-button-but-position-not-updating-when-holding/232066/6):
>
> so many different links of events… […]if there’s a way to approach this in a simpler fashion Let me clarify; what I originally suggested is suitable for a situation where you want both - dragging a widget and dragging an actor around simultaneously. Spawning and dragging after an interface click is easier as we don’t care about widget position: [[Image from Gyazo]](https://gyazo.com/845ee0e5a16140ad15da7f127fe34cf8) The above should be in the Player Controller. Here the button was set to Mouse Down so it releases focus even though i…

---

_[View the full topic](https://forums.unrealengine.com/t/spawning-an-object-on-on-drag-cancelled-spawns-in-weird-locations/253644)._
