Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMG - Text Block Losing Text Randomly

Hi, I've been playing with UMG a lot over the last few days. At the moment I'm enjoying it but I have one rather annoying problem.

For some reason any "Text Blocks" I add to my widgets after some time they end up reverting back to display "Text Block". I initially got around this by creating a "Text" variable and having the text block set its content to the variable, however today for some reason the "Text" variables are starting to clear themselves and become blank.

I'm not sure whats causing it. I compile, save and test and the text displays what I've set them too. after a while of doing other things in different BP's I test the game again and they appear as "Text Block"

Is anyone else experiencing this? Is this all ready a known issue? Any help would be appreciated.

Regards Michael

Product Version: Not Selected
more ▼

asked Sep 16 '14 at 03:48 PM in Bug Reports

avatar image

6 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Yeah it's a known issue, but tracking down the root cause has proven difficult. If you find a reproducible case that works every single time, I would love to know it :D

Cheers, Nick

more ▼

answered Sep 16 '14 at 04:37 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 37 151

avatar image nopunintendo Nov 08 '14 at 09:42 AM

I believe I'm having difficulty with this bug, or possibly related. I've taken a few screenshots of the widget I have setup. This is the second time I've created this widget from scratch, and the same problem seems to keep occurring, which is that the widget will not display any text in the textblock. I will explain the setup below, and please take a look at these screenshots: https://www.dropbox.com/sh/xi4720j1lfc2llu/AAA-CEUWXVvwzcf4ocU_vd7Ca?dl=0

The user presses "E" on a usable object, which constructs the widget and passes in the String variable that it holds (source of the dialogue to display).

The widget is an Overlay panel with two images and one textblock. The text field is left as the default "Text Block". I created a binding for this field, which gets the value of the String variable "Text" stored on the widget (exposed on spawn, set by the constructor). I convert the String type to Text in the binding function. (I would just use Text type but that type can't be exposed on spawn).

The widget is spawned correctly, but the text field is blank. It shows neither the default text, nor the provided text.

I've tried setting the String variable to "expose on spawn", then changing its type to Text(which will actually expose the text on spawn) but that didn't seem to make a difference, and would only cause confusion down the road.

I've also tried enabling the TextBlock as a variable in the designer, then calling "Set Text" in the Construction Event. That did not work either.

I hope I've made this clear enough, please let me know if you have any questions about it. I love UE4 and UMG and really hope to see it improve.


avatar image Rudy Q ♦♦ STAFF Nov 10 '14 at 03:00 PM

Hello dbInteractive,

I have just a couple of quick questions for you. First off however, thank you for the information and screen shots you have provided.

Quick questions:

  1. I see that you are stacking widgets. Could you make sure that your text block has the highest zorder? This is to make sure that it's not being placed behind your images after being rendered.

  2. Could you list out steps for a consistent reproduction of your issue?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question