Error when adding widget to screen
First Image is the error I get when ending the level. The widget does appear in game, but for some reason I still get this error.
Below is adding the widget in the third person character BP.
Gamemodes have already been set.
asked Jun 11 '16 at 12:32 AM in Blueprint Scripting
you could try something like this:
by using the IsValid node it checks if the widgets is already created, if so it adds it to the viewport, if not it creates it before adding it.
hope it helps :)
answered Jun 11 '16 at 01:39 AM
One thing you could try would be to place this code in a HUD derived blueprint. You see those little monitor icons on these nodes? Those mean that they are purely aesthetic and should not be used anywhere that can affect gameplay. That generally means that you should take care of them from a HUD.
As for this specific error, it says "Accessed None" when it was trying to read the property. That means that the widget is not being created correctly. I think this may be an order of operations problem. Stick in in your HUD blueprint and see if that clears the problems up. If not, I'll help you figure this problem out inside your character blueprint.
answered Jun 11 '16 at 02:28 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here