# Text Component not updating inside Retainer Box

**URL:** <https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340>\
**Category:** UI\
**Tags:** unreal-engine, UE5-0, UI, question, UMG\
**Created:** [April 25, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340 "2022-04-25T15:01:33Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [April 10, 2023, 1:38pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/14 "2023-04-10T13:38:50Z")

</div>

Just experienced the same issue after putting a Text Component in a Retainer Box. Updating the text wasn’t updating the appearance.

I tried everything in this thread, and 1) Calling Request Render on the Retainer Box did nothing. 2) Setting Phase Count to 2 makes it update, but inconsistently (sometimes it updates when the text changes, sometimes it doesn’t)

**Finally, I found a solution. Call the ForceLayoutPrepass function on the Text Component (not the Retainer Box) after updating the text contents and this should cause it to update.**

Render Rules are set to Retain Render (true), Render on Invalidation (false), Render on Phase (true), Phase (0), and Phase Count (1).

By the way, another issue I noticed is that the visual appearance can vary significantly when Retain Render is on compared to when it’s off. The solution in the following thread of adding gamma adjustment to the Retainer Box’s material worked for me, although it looks like in the latest UE version (5.1) you might get better results by taking the power to a value between 0 and 1, and maybe also including some multiplication to adjust the appearance as appropriate.

> [@UE4.17 Retainer box is washing colors](https://forums.unrealengine.com/t/ue4-17-retainer-box-is-washing-colors/405296/6):
>
> It seems like this is a bug in the engine that was fixed in 4.15 and somehow reappeared in 4.18p2 and I still have it in 4.21 [[Unreal Engine Issues and Bug Tracker (UE-35531)](https://issues.unrealengine.com/issue/UE-35531)][1] As a (temporary) workaround you can manually add the correct gamma correction into your retainer material. e.g. like this:

---

_[View the full topic](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340)._
