# Hot widget on widget action

**URL:** <https://forums.unrealengine.com/t/hot-widget-on-widget-action/478262>\
**Category:** UI\
**Tags:** communication, casting, unreal-engine, Widget, Blueprint, question\
**Created:** [February 5, 2021, 12:03am UTC](https://forums.unrealengine.com/t/hot-widget-on-widget-action/478262 "2021-02-05T00:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 5, 2021, 12:03am UTC](https://forums.unrealengine.com/t/hot-widget-on-widget-action/478262/1 "2021-02-05T00:03:12Z")

</div>

Ok, so I’ve made a widget called MainDisplay to be my outline and container for all my HUD widgets.

Trying to keep it modular, I’ve created widgets to put inside the bars and borders of the MainDisplay widget.

In the MainDisplay I have a widget switcher that worked before I moved the buttons to a separate widget and then added the sub-widget to the main one.

Now, I’ve tried to communicate the sub-widget with the buttons to the main widget with no success.

Every single tutorial on direct communication uses the player character or controller, but I should be able to use the get parent and cast to go up one level but nothing works.

Pls hlp.

---

<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:** [February 5, 2021, 8:01am UTC](https://forums.unrealengine.com/t/hot-widget-on-widget-action/478262/2 "2021-02-05T08:01:43Z")

</div>

Get Parent gets you precisely what it says - a direct parent. If you put a _User Widget_ in a _Horizontal Box_ that’s what you’re going to get when you fetch the _User Widget_’s parent - a _Horizontal Box_. It will not travel automagically all the way to the root of the widget and return that.

* * *

If you want a User Widget to talk to its owner, use _Event Dispatchers_.

- the child:

 ![328945-child.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/8/c78ba6c62fe8bc968fb09417361cdcd2cabca2a8.jpeg)

- the parent:

 ![328946-parent.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/2/122f93f6363a605a672d8427230666a8dee4cb0e.jpeg)

Whenever the child dispatches a call, the parent can catch it.

---

<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:** [February 5, 2021, 8:03am UTC](https://forums.unrealengine.com/t/hot-widget-on-widget-action/478262/3 "2021-02-05T08:03:47Z")

</div>

There’s no need to reference or cast in a scenario like this.
