# 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:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGamerX20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGamerX20](https://forums.unrealengine.com/u/TheGamerX20)\
**Post date:** [April 25, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/1 "2022-04-25T15:01:33Z")

</div>

Hello!

I am having an issue where Text is not getting updated / rendered inside a Retainer Box.

I have a Retainer Box for a “Curved” UI effect by applying a Material, and I have Text Components attached to it, this used to work just fine back in UE4, but in UE5 Text never gets updated, for example Health Counters, Ammo Counters, none of them get updated if they are inside the Retainer Box, if I move them out of the Retainer Box they all work just fine… so it is not my Blueprints, I do have Render on Phase enabled, so it should render it every frame but it is not doing that, is there any solution to this? or any other way to have a curved UI effect without a Retainer Box?

I am having this problem specifically in UE5, I tried it on 4.27.2 and it does not occur there.  
I can attach a Sample Project if needed.  
Thanks!

---

<div class="post-metadata">

**Author:** ![D.Wheeler90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Wheeler90](https://forums.unrealengine.com/u/D.Wheeler90)\
**Post date:** [May 17, 2022, 3:27pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/2 "2022-05-17T15:27:43Z")

</div>

I’m having the exact same issue and cannot find a solution. Were you able to figure it out?

---

<div class="post-metadata">

**Author:** ![D.Wheeler90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Wheeler90](https://forums.unrealengine.com/u/D.Wheeler90)\
**Post date:** [May 17, 2022, 3:38pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/3 "2022-05-17T15:38:38Z")

</div>

Actually, even without any material applied to the retainer box it still doesn’t update text.

---

<div class="post-metadata">

**Author:** ![TheGamerX20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGamerX20](https://forums.unrealengine.com/u/TheGamerX20)\
**Post date:** [May 17, 2022, 3:58pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/4 "2022-05-17T15:58:19Z")

</div>

Hey! The good news is I did submit an issue and they are have a target to fix this in Unreal Engine 5.1!

Link to issue: [Unreal Engine Issues and Bug Tracker (UE-150807)](https://issues.unrealengine.com/issue/UE-150807)

---

<div class="post-metadata">

**Author:** ![D.Wheeler90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Wheeler90](https://forums.unrealengine.com/u/D.Wheeler90)\
**Post date:** [May 17, 2022, 9:49pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/5 "2022-05-17T21:49:42Z")

</div>

Well, thank you for the info!

---

<div class="post-metadata">

**Author:** ![Emrehan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/emrehan/32/1194629_2.png) [@Emrehan](https://forums.unrealengine.com/u/Emrehan)\
**Post date:** [May 28, 2022, 8:04am UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/6 "2022-05-28T08:04:49Z")

</div>

I thought I was going mad lol, thank you for posting this.

If you need a quick fix, put your updating function into the tick and add very slight delay, it will keep updating the text.

---

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [June 20, 2022, 12:23am UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/7 "2022-06-20T00:23:10Z")

</div>

I found a work around until fix is in you can request render from retainer box and do that on event tick or a timer and it will update the UI elements and is more performant and easier than putting the functions in the event tick

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/8/c18d59ff7162dd884ffd66f78faeab4ee9cb45db.png)

---

<div class="post-metadata">

**Author:** ![VL4DST3R](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vl4dst3r/32/482857_2.png) [@VL4DST3R](https://forums.unrealengine.com/u/VL4DST3R)\
**Post date:** [October 22, 2022, 11:04am UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/8 "2022-10-22T11:04:37Z")

</div>

Came here with the same issue, and reading above i found that there is an even simpler (but still equally stupid) solution: just add a delay of 0,0 before the Set Text in whatever ticking event you want to use.

Additionally you can also increase the Phase Count from 1 to 2 which halfs the update rate to achieve the same result.

Beware, adding the Request Render inside a binding for a widget crashes the engine entirely.

---

<div class="post-metadata">

**Author:** ![EvoGarcia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvoGarcia](https://forums.unrealengine.com/u/EvoGarcia)\
**Post date:** [December 12, 2022, 11:01am UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/10 "2022-12-12T11:01:41Z")

</div>

> [@Spacemarine658](#):
>
> I found a work around until fix is in you can request render from retainer box and do that on event tick or a timer and it will update the UI elements and is more performant and easier than putting the functions in the event tick
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/8/c18d59ff7162dd884ffd66f78faeab4ee9cb45db.png)

This totally worked for me!

I had this issue with everything updating inside a retainer box, not only text.  
This is extremly weird, but I hope they fixed so it will work properly by default.

Still happening in 5.1

---

<div class="post-metadata">

**Author:** ![brain.ctrl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brain.ctrl](https://forums.unrealengine.com/u/brain.ctrl)\
**Post date:** [March 15, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/11 "2023-03-15T16:00:54Z")

</div>

Thanks so much! This did it for me as well!

---

<div class="post-metadata">

**Author:** ![DaveFace](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daveface/32/597060_2.png) [@DaveFace](https://forums.unrealengine.com/u/DaveFace)\
**Post date:** [March 18, 2023, 6:35pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/12 "2023-03-18T18:35:04Z")

</div>

> [@EvoGarcia](#):
>
> Still happening in 5.1

The [bug tracker link](https://issues.unrealengine.com/issue/UE-150807) posted back in May - where the user said that the target fix was 5.1 - has been updated recently with a new target fix of 5.4.

So we expect this to be an issue for some time, Epic clearly don’t think it’s important.

Unfortunately the above fixes aren’t working for me in 5.1, luckily (I guess) this only affects one part of my HUD which I’ve had to just disable for now. Extremely frustrating and I’m regretting updating our project to 5.x now.

---

<div class="post-metadata">

**Author:** ![Kyle\_Reese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_Reese](https://forums.unrealengine.com/u/Kyle_Reese)\
**Post date:** [March 23, 2023, 7:11am UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/13 "2023-03-23T07:11:35Z")

</div>

Had this bug too in 5.1. However, if I set Phase Count to 2, inner components suddenly get updated properly.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/b/56b2c6b322326d8137561128bbb28f4d7436e0e9.png)

---

<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:

---

<div class="post-metadata">

**Author:** ![9Atte9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9Atte9](https://forums.unrealengine.com/u/9Atte9)\
**Post date:** [August 11, 2023, 6:58pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/15 "2023-08-11T18:58:11Z")

</div>

The easiest fix for this is to set the text to SimpleTextMode = true. Target fix for the bug is 5.4 but go add some votes in to the problem so it gets solved [Unreal Engine Issues and Bug Tracker (UE-150807)](https://issues.unrealengine.com/issue/UE-150807)

---

<div class="post-metadata">

**Author:** ![Sky001](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sky001/32/1092299_2.png) [@Sky001](https://forums.unrealengine.com/u/Sky001)\
**Post date:** [August 18, 2023, 11:21pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/16 "2023-08-18T23:21:27Z")

</div>

> [@9Atte9](#):
>
> SimpleTextMode

Thanks for this solution! 🙂 it’s really the easiest one 😃

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [December 9, 2023, 9:33pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/17 "2023-12-09T21:33:06Z")

</div>

Amazing, thanks so much!

---

<div class="post-metadata">

**Author:** ![DryreL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dryrel/32/1042339_2.png) [@DryreL](https://forums.unrealengine.com/u/DryreL)\
**Post date:** [June 27, 2024, 5:52pm UTC](https://forums.unrealengine.com/t/text-component-not-updating-inside-retainer-box/539340/18 "2024-06-27T17:52:00Z")

</div>

Thank you, it worked in UE 5.3!
