# How to get widget component owning actor?

**URL:** <https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [February 4, 2022, 1:26am UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012 "2022-02-04T01:26:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fael097](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fael097/32/250778_2.png) [@fael097](https://forums.unrealengine.com/u/fael097)\
**Post date:** [February 4, 2022, 1:26am UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/1 "2022-02-04T01:26:05Z")

</div>

my interactable actor has a widget component with a button, and when I click the button, I want my player to move to a location which is a scene component to the same actor.

but I can’t get a reference to the owning actor from the widget, or to the specific widget from the actor, or even cast to them.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/2/54252a833e69aa705f54a08d1075b18c15e19843.png)

(none of these work)

how could I do it?

---

<div class="post-metadata">

**Author:** ![8DrunkenGods](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@8DrunkenGods](https://forums.unrealengine.com/u/8DrunkenGods)\
**Post date:** [February 4, 2022, 1:55am UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/2 "2022-02-04T01:55:56Z")

</div>

![construct](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/0/e7049be917e5506e525cfcb724372241533f660c.png)  
Give this a try. Call to the ‘Event Construct’ and get your player character at index 0 and right click that blue value and set as variable, name it owner. Now on your button click use that other set of code and hopefully when you click it it’ll know the owner.

---

<div class="post-metadata">

**Author:** ![fael097](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fael097/32/250778_2.png) [@fael097](https://forums.unrealengine.com/u/fael097)\
**Post date:** [February 4, 2022, 8:39pm UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/3 "2022-02-04T20:39:53Z")

</div>

I was trying the other way around, getting a reference to the widget from the actor blueprint, which wasn’t working either, but then what I did was on begin play to create the widget, save it as a reference, and then replace my widget in the widget component with this reference. It worked, but it’s kinda lame.

then I found out this node “get user widget object” which will return a reference to the widget in the widget component. I was using “get widget” which doesn’t work.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/d/e6d1cad624fa6cd00cb8bb5104ca2fc678cb4838.png)

now I have a reference to the widget within the actor blueprint and I can cast an actor self reference into the widget and communicate between them. it works fine

cheers

---

<div class="post-metadata">

**Author:** ![SIX\_FINGER\_GAMES](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/six_finger_games/32/1203392_2.png) [@SIX\_FINGER\_GAMES](https://forums.unrealengine.com/u/SIX_FINGER_GAMES)\
**Post date:** [July 21, 2023, 5:18pm UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/5 "2023-07-21T17:18:57Z")

</div>

Thank you so much for this, your blueprint logic is useful.

---

<div class="post-metadata">

**Author:** ![jacksonnexhip](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacksonnexhip/32/494650_2.png) [@jacksonnexhip](https://forums.unrealengine.com/u/jacksonnexhip)\
**Post date:** [July 18, 2025, 2:33am UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/6 "2025-07-18T02:33:22Z")

</div>

> [@fael097](#):
>
> the other way around, getting a reference to the widget from the actor blueprint, which wasn’t working either, but then what I did was on begin play to create the widget, save it as a reference, and then replace my widget in the widget component with this reference. It worked, but it’s kinda lame.
> 
> then I found out this node “get user widget object” which will re

Is it possible to do it the other way? i.e. get a reference to the widget component from inside the widget blueprint itself?

---

<div class="post-metadata">

**Author:** ![iPoNet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iponet/32/1046210_2.png) [@iPoNet](https://forums.unrealengine.com/u/iPoNet)\
**Post date:** [December 10, 2025, 7:59pm UTC](https://forums.unrealengine.com/t/how-to-get-widget-component-owning-actor/494012/7 "2025-12-10T19:59:18Z")

</div>

I dont know if this is better than casting… hope this help

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/6/136f5377b2c0ba3fd7605d4dd997d01f595ff92e.png)
