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.
I achieved something like this in 4.7 but in 4.9 I can’t get it to work.
When i was working on Widgets had the same problem.
- character is null. (you have no reference or you destroyed him)
- 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.
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.
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.