# Move an Actor from widget button press

**URL:** <https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113>\
**Category:** UI\
**Tags:** actor, actor-blueprint, actor-location, unreal-engine, Widget, Blueprint, question\
**Created:** [April 12, 2019, 1:49pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113 "2019-04-12T13:49:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [April 12, 2019, 1:49pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/1 "2019-04-12T13:49:18Z")

</div>

I’m working on a game, and need to move an actor to a locatio when i press a buttin in a widget,but it can’t move when I press the button. Can someone tell me how to make an actor move from a widget?

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [April 12, 2019, 2:33pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/2 "2019-04-12T14:33:00Z")

</div>

You need to reference you specific actor you want to move within the widget and use the “On Clicked” event from the button to set the actor’s location. If you need help with casting and creating references check out video #1 and 25. They should help you get on the right track.

https://www.youtube.com/embed/videoseries?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [April 12, 2019, 2:40pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/3 "2019-04-12T14:40:25Z")

</div>

I did try to cast to my actor, but it won’t work, what do Ineed to conect to the object pin on the cast to my actor?

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [April 12, 2019, 3:10pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/4 "2019-04-12T15:10:41Z")

</div>

I did fint 1 way to fix it, bu using an overlap like you said, but i did you a tigger box and set to actor to teleport the actor did overlap whit that triggerbox

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [April 12, 2019, 3:36pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/5 "2019-04-12T15:36:09Z")

</div>

So you got it? Or you still have issues?

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [April 12, 2019, 3:37pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/6 "2019-04-12T15:37:22Z")

</div>

Yes, I was able to fix it, thank you for the help

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [April 12, 2019, 4:19pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/7 "2019-04-12T16:19:04Z")

</div>

Awesome. Can you mark this resolved so it is clear to others.

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [April 12, 2019, 5:03pm UTC](https://forums.unrealengine.com/t/move-an-actor-from-widget-button-press/447113/8 "2019-04-12T17:03:06Z")

</div>

The way I was able to fix this is ti use a trigger box, and when I press the button, the trigger box will spawn on and overlap my actor and then in the actor Blueprint I did set is so if that trigger box is overlapping, the the actor will teleport
