x

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"

When Variable Changes Text Doesn't Update in HUD

If you have a UMG widget embedded into the main HUD and update the text on the embedded widget it doesn't update.

I setup the text to have a binding with a variable.

alt text

I then setup the bind variable to alternate between two different variables.

alt text

If the 'Bind Text' variable is set without the 'text' variables attached it updates. But if I attach the 'text' variables the bind text changes back to what the 'Bind text' was originally set to before any variables were attached.

This only happens to embedded widgets as if I try this in the main HUD it updates fine with the variables attached to the 'bind text' variable.

I have been able to reproduce this in a new project as well.

Product Version: UE 4.11
Tags:
gettext.png (27.5 kB)
settext.png (70.6 kB)
more ▼

asked May 08 '16 at 01:12 PM in Bug Reports

avatar image

Tocs
93 8 11 17

avatar image Adam Davis STAFF May 10 '16 at 02:15 PM

Hi Tocs,

I have not been able to reproduce this error on my end.

  • What steps can I take to recreate this error?

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?

  • Have you tried using a timer instead of a custom delay loop?

avatar image Tocs May 11 '16 at 01:26 PM

Hi Adam,

Here are the steps to take to reproduce the bug.

Create a new blank blueprint project. Create a new character blueprint. Create a game mode blueprint. Create two widget blueprints.

Open the character and from begin play add a 'create widget' and add widget1 then draw out and 'add to viewport'. Compile

alt text

Open world settings and change the game mode to the new one and change default pawn class to the new character.

Open widget two and add text to the top left. Select it and make a binding to the text. Like below.

alt text

Change to the graph and off event construct set the new bind text variable. Then manually set some text.

Open widget1 and add widget2 to the centre.

Hit play and the manually set text should display.

Add a new variable to the set bind text variable and change the new variable to something different. If you hit play it wont update to the hud, it will stay to what it was before.

If you then disconnect it and type something different manually again it will then use that, but if you then connect the variable it will revert to the originally set value.

This is frustrating as i'm using a widget with a single button with text that then gets dropped into another widget multiple times but it wont update the text unless I manually set each button. So I cant simply use an array or the data tables that have all the text stored.

It depends on how many layers of inception go on of how weird it acts. If you repeat it again through a third widget the variable seems to stop being able to update from the top most level. But only able from the next down.

I hope this helps you find the issue.

gettext.png (27.5 kB)
create hud.png (49.6 kB)
avatar image Adam Davis STAFF May 11 '16 at 02:45 PM

Do you have a sample project where this is occurring? Thus far I have not been able to recreate this error on my end.

avatar image Tocs May 17 '16 at 01:44 AM

Sorry Adam for the delay I have been busy.

Please follow the below link for the project files. https://www.dropbox.com/s/tcxvi48g5u4pa2v/HUDText.zip?dl=0

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

3 answers: sort voted first

Hi Tocs,

I did some digging and have found that this appears to be a known issue, UE-29479.

more ▼

answered May 17 '16 at 07:12 PM

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

Hi Tocs,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

more ▼

answered May 16 '16 at 03:47 PM

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

,You have it set on a loop. it does sequence a, then continues to repeat sequence a until its done again and again, it is on an infinite loop, never getting to sequence b.

(Or is that the sole functions purpose as 'flip flop'?)

more ▼

answered Oct 26 '16 at 02:30 PM

avatar image

De Ocean Pirate
27 8 11 15

(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