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"

Integers on HUD error

Hi all.

I have run into a problem while following the documentation https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/2/index.html

I want to display numbers on the screen that subtract and add when the player pushes certain buttons. When I follow the steps in the documentation, the numbers turn to zero when the world starts and I get errors in the message log.

alt text

I achieved something like this in 4.7 but in 4.9 I can’t get it to work.

Product Version: UE 4.9
Tags:
messagelog.png (172.6 kB)
more ▼

asked Oct 24 '15 at 06:31 PM in Blueprint Scripting

avatar image

Van2015
52 13 17 24

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

2 answers: sort voted first

Okay, sorry for the inconvenience. I was able to solve the issue. I missed the step in the documentation where I needed to add a cast to character in the event construct. My character reference was indeed null.

more ▼

answered Oct 24 '15 at 08:04 PM

avatar image

Van2015
52 13 17 24

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

When i was working on Widgets had the same problem. Reasons are 1) character is null. (you have no reference or you destroyed him) 2) result is null. check if you are setting characters reference to widget and check if you are getting this text after destruction of your character.

more ▼

answered Oct 24 '15 at 07:02 PM

avatar image

kubiknubik
336 17 3 17

avatar image Van2015 Oct 24 '15 at 07:56 PM

I followed the documentation, creating a variable within the widget and made it a third person Character referance. maybe I did something wrong there? I’m not destroying my character, so his reference might be wrong.

here's an image of my widget binding. alt text

widgetblueprint.jpg (767.6 kB)
(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