Text widget shows up in editor/asset preview but not in game

I solved the problem. It laid within the function that I made to define the contents of the value of the text block. I forgot to cast to my widget and use “get user widget object” in that function.
Heres the correct code: