# \[UE5.1.1, Bug report\] Widget does not set text unless asset is reloaded.

**URL:** <https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, question\
**Created:** [April 7, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567 "2023-04-07T18:28:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 7, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/1 "2023-04-07T18:28:08Z")

</div>

1. Create a UserWidget “Button” holding a textblock widget and a text property ButtonText.  

2. On Button’s (blueprint) PreConstruct, set textblock text to text of property ButtonText.  

3. Add Button to a new UserWidget “Panel”.

4. Configure Button’s text property ButtonText through Panel’s editor panel.  

~~  
5. Be amazed how it can randomly completely forget the value set from the editor panel on Panel and revert back to the placeholder text set on Button.

Workaround: Hit reload on all affected widgets and panels, save them and push everything back to version control. What is all this weirdness??

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/2/7b2762c4f9bf6ce1ade027dfc6633d0de51a0aa3.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 7, 2023, 6:50pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/2 "2023-04-07T18:50:20Z")

</div>

You ought to bug report all this stuff 🙂

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 7, 2023, 6:55pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/3 "2023-04-07T18:55:27Z")

</div>

I found this in UE4.25 and it’s still there on new projects, someone must have an explanation 🙂 . I mean I haven’t ran into something like “Placeholder” yet in the bigger games (OK except in LIS before the storm which had missing strings) but eh that is a different issue. I just want to get to work… By now I’m an engine bug hunter and it surely isn’t what I had in mind.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 28, 2023, 6:02pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/4 "2023-04-28T18:02:57Z")

</div>

Bump, any fix for this? Incredibly annoying behavior, happens very often. The workaround is reloading the affected asset. Known bug? I can’t risk this happening after packaging

![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/8/9c8703c931017c4248ac4f95f038e2b440261350.png)

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 29, 2023, 10:03am UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/5 "2023-04-29T10:03:00Z")

</div>

This actually happens every startup now. There’s nothing in c++ or blueprint code which affects this, as noted it is loaded properly after reloading the asset, but I got to do that every single time i load up the editor. How can this happen it’s 2023. One way it apparently gets less is when you reload and resave every single affected widget at once. After that you can restart the engine and enjoy it while it lasts…

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 7, 2023, 6:48pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/6 "2023-05-07T18:48:41Z")

</div>

Absolutely EPIC. The widget editor joins the party.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/8/4487654c58b80a9aa8e0ff70b94854c7b9f73a8c.png)

That header is a blueprint directly inheriting from UserWidget, no logic in it but to set the text of a text widget to the value of a text property on PreConstruct.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/8/ad89767fe8fc437f1946e0bfd86f0a6e51337302.png)

No one came across this out of the box behavior?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 7, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/7 "2023-05-07T18:59:42Z")

</div>

Have you tried maybe using the “Force Layout Prepass” node before the SetText?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 7, 2023, 7:15pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/8 "2023-05-07T19:15:44Z")

</div>

Hi thanks for the suggestion! I added it for the header widget:

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/2/d62b9769bf98f53ca98b9da18edaad96d34e214e.png)

But the results are the same. The header is just one of the misbehaving widgets, all set the text from the value of a text property.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/8/29850db04820a122fde5888611ee17d4d3a6e5ea.png)

Strangely, this issue occurs either in the editor or in-game (or both) and seems to be related to the state of the parent widget somehow. What I mean by that is that when the header all of sudden starts to misbehave nested on one menu, it can still show up fine if that menu is nested on another UserWidget.

The trigger for the issue seems entirely random and temeporarily goes away if you hit “reload asset” on as many related UserWidgets as possible.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 8, 2023, 3:54pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/9 "2023-05-08T15:54:18Z")

</div>

🦄

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 24, 2023, 11:04pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/10 "2023-05-24T23:04:05Z")

</div>

😶‍🌫️

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 24, 2023, 11:35pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/11 "2023-05-24T23:35:14Z")

</div>

@Jamie_Dale Hi Jamie, you know a lot about the localization system, do you know what might be going on here in UE5?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 26, 2023, 12:39pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/12 "2023-05-26T12:39:28Z")

</div>

Out of curiosity where are you setting the placeholder text?  
I’ve noticed it seems to play nice it you leave the textblocks default text empty and only set the default value on the string that passes in text to the button on pre-construct.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 26, 2023, 12:48pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/13 "2023-05-26T12:48:01Z")

</div>

Sadly no 😕 . I tested it just now, specifically cleared the textblocks default text, saved, then reconnected the PreConstruct method which sets the text from a text property. The text property holds the placeholder value. I restart the game and it simply says “Placeholder”. Then I reload the button asset and it gets the correct value. The correct value is set by a parent UserWidget which holds a list of buttons, there for each button the text property is set to a localized value on the editor panel. Crazy right? It’s not even everywhere it’s just random if it happens on a certain UserWidget both game and editor. Once it happens it stays.

![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/7/91798e1628ae24b10650221ba8046ca76e70dec6.png)

![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/5/5e5c71df4c805f40d45cc33c2e4683f3e398b8df.png)

It’s not some weird hidden logic this happens on 100% blueprint widgets directly inheriting from UUserWidget

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 26, 2023, 12:58pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/14 "2023-05-26T12:58:12Z")

</div>

list of buttons as in a listview?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 26, 2023, 1:05pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/15 "2023-05-26T13:05:02Z")

</div>

Nah, like any panel. Be it a vertical / horizontal box, an overlay, etc. I just display pre styled UserWidgets containing a text block and maybe a background, nothing fancy. The buttons and header shown above are an example of those pre styled assets. All set the text the same way and all have the same bug. I suspect the localization system itself at this point, or the Widget refuses to read the value set by its parent through that public text property.

---

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [December 17, 2024, 4:28am UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-widget-does-not-set-text-unless-asset-is-reloaded/874567/17 "2024-12-17T04:28:00Z")

</div>

I just had some similar issue where I thought Set Text wasn’t working.

Turned out my List View which has objects that ref its parent had a stale parent.

Since I destroy and recreate their parent in my case I had to refresh their parent to restore the history of data I used the list for.

I do not believe I got any errors or warnings about the stale parent, it was there just new and the object had an old pointer but again no errors so it seemed strange but makes sense once caught.
