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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Failing to update text to UMG

Hi, So basically, I have an integer called "coins gained" that updates every time I overlap a "pickup". This works fine as I have the values update to a string and it comes on screen and all that. However, whenever I try to pass that integer and update the text within UMG, the text basically disappears all together. I've narrowed the issues down to what I think is probably a casting problem, but I can't understand why. Hopefully, someone will help me figure this out. Also, I do the overlap within my character class and I assign the coins there also. And I display the UMG within the character blueprint as well. alt text

alt text

alt text

Product Version: Not Selected
more ▼

asked Jan 05 '15 at 05:06 PM in Blueprint Scripting

avatar image

1 2 2

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

1 answer: sort voted first

I've had issues in the past due to using casts to my player controller within the UMG hud.

Did you try creating an exposed variable in your hud widget that would essentially be "coins" and just update it after your destroy actor?

Since you already kept a reference to "Main HUD Widget" in your blueprint, it should be very easy and it would eliminate the need to get player character in your "Get Text 0".

more ▼

answered Jan 05 '15 at 10:38 PM

avatar image

2.1k 104 72 163

avatar image Zahir-Ahmed Jan 05 '15 at 11:23 PM

You're my hero man. I even had the coins variable already in there, I just had to replace the binding with the variable itself. Can't believe I overlooked that. Thanks a lot.

avatar image Justin.Dooley Jan 05 '15 at 11:53 PM

Glad I could help! Feel free to mark it as resolved ;)

(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