# How to get the input from the widget in an actor in the world triggered by a pawn.

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 22, 2025, 11:42am UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919 "2025-09-22T11:42:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [September 22, 2025, 11:42am UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919/1 "2025-09-22T11:42:17Z")

</div>

Hey, This for some reason broke my brain.

I have a pawn. It has a widget interaction component.

It triggers the button in a widget that’s inside an actor in world space, It prints great.

However, what’s the reference path to get that input to now do something in my pawn?

Thanks.

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [September 22, 2025, 12:25pm UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919/2 "2025-09-22T12:25:58Z")

</div>

You should pass the pawn reference to the widget. To do this, just grab the widget from the WidgetComponent and set a ref, so you can easily call any functions from the pawn whenever you need to.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [September 22, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919/3 "2025-09-22T13:18:16Z")

</div>

Sweet, this sounds easy.

I apologise But im rather slow on the uptake of things.

So the widget needs the pawn reference, nice.

Are we taking the widget from the widget component list in the actor itself and setting it?

Or do we reference in the widget?

In the actor i set a variable to the pawn, and made it editable. then connected it in the level blueprint.  
Then used this, to get that pawn reference to the widget?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/6/c2697b1cc0461eddfcfa530a9c88bbf12cf2ee4b.png)

Am I close?

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [September 23, 2025, 7:53pm UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919/4 "2025-09-23T19:53:51Z")

</div>

It looks to be correct. You can create a function in the Pawn, and when you click the button, check if the Pawn reference is valid, then call the function from there.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [September 24, 2025, 5:03pm UTC](https://forums.unrealengine.com/t/how-to-get-the-input-from-the-widget-in-an-actor-in-the-world-triggered-by-a-pawn/2658919/5 "2025-09-24T17:03:28Z")

</div>

This works fantastically, and beautifully I had the references already there for something else so It worked great.

Thank you!
