# text string empty after passing between widgets

**URL:** <https://forums.unrealengine.com/t/text-string-empty-after-passing-between-widgets/318233>\
**Category:** UI\
**Tags:** empty, unreal-engine, editor, UE4, question, UMG\
**Created:** [May 11, 2015, 7:30pm UTC](https://forums.unrealengine.com/t/text-string-empty-after-passing-between-widgets/318233 "2015-05-11T19:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [May 11, 2015, 7:30pm UTC](https://forums.unrealengine.com/t/text-string-empty-after-passing-between-widgets/318233/1 "2015-05-11T19:30:52Z")

</div>

I have an UMG widget which is a tree structure. The children have struct members containing information about the name and if its an item or category within the tree. These structs are set in the creation of a child widget (expose on spawn). Now it somehow is the case that immediately after construction of a child widget an FText field in the struct is empty, while just before constructing it its still filled… It seems i am dealing with a temporary value here? Am i doing something i am not supposed to do?

Important: when running this from the editor in dedicated server mode everything is fine and the widget is filled, but if i run this on a non-cooked server + client build i suddenly see the behaviour described above, i.e. values becoming empty?  
It seems the editor is doing something my standalone build is not…

Could it be this issue: [BUG [4.7.5] Struct variables fail in Standalone Game - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/214027/bug-475-struct-variables-fail-in-standalone-game.html)

---

<div class="post-metadata">

**Author:** ![Arveum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arveum](https://forums.unrealengine.com/u/Arveum)\
**Post date:** [May 12, 2015, 10:45am UTC](https://forums.unrealengine.com/t/text-string-empty-after-passing-between-widgets/318233/2 "2015-05-12T10:45:45Z")

</div>

I read stuff about server and client’s in your question, could you please elaborate on the setup you have? Perhaps show us some blueprints?

I know sometimes you need to manually add in delays before displaying or printing text, because otherwise you’d get empty strings. Why? I have no idea but I had a similar issue [here](https://forums.unrealengine.com/showthread.php?69591-Targetting-a-specific-player-in-Multiplayer&p=289601&viewfull=1#post289601).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [May 14, 2015, 10:26am UTC](https://forums.unrealengine.com/t/text-string-empty-after-passing-between-widgets/318233/3 "2015-05-14T10:26:43Z")

</div>

It is a bug in UE 4.7… the workaround i used is initializing the variables after constructing and making a custom event “After construct” to do the construction logic for now…
