# \[UMG\] Style sub widget based on state of parent?

**URL:** <https://forums.unrealengine.com/t/umg-style-sub-widget-based-on-state-of-parent/37286>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 1, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/umg-style-sub-widget-based-on-state-of-parent/37286 "2015-08-01T16:19:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1d09d07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Post date:** [August 1, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/umg-style-sub-widget-based-on-state-of-parent/37286/1 "2015-08-01T16:19:55Z")

</div>

I have a UMG button with proper styling based on state. However I also need some of its child widgets to also change based on the state of the button. Specifically I need to change the color of some text (not all) that is parented under the button. When the button changes between normal and hovered state I need to change the color of one of the text widgets in the button.

I can’t seem to figure out how to do this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1d09d07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Post date:** [August 1, 2015, 4:29pm UTC](https://forums.unrealengine.com/t/umg-style-sub-widget-based-on-state-of-parent/37286/2 "2015-08-01T16:29:16Z")

</div>

Ok I managed to get it working but I’d love to know if there is a more efficient way of doing this through UMG itself somehow. Similar to hot the button is done.

Anyway what I did was go into my widget’s graph and add a Tick event. In that I look each tick to see if the button widget “Is Hovered” or not, and set the color of the underlying text widget as needed. In order to do this I first had to tick the very easy to miss “Is Variable” checkbox at the very top of the Text widget’s properties. This then exposed it to the BP graph.
