How to render my saved variable?
hey, i want to render the score u got in an other level. So i created the game instance. everything works till there! Then i wanted to save the values of the variable "max (player)score". the max score is ur highscore. And when i reopen this game it should show u ur highscore again. But it tells me all times an error about the return node of the function, which is binded by the Text.
asked Feb 24 '19 at 09:04 PM in Using UE4
Check how you set your «save ref» variable. You try to push a «create save game object» on false and you use the return value directly after, but if the save game object exist you still try to take the return value from your «create save game object» which obviously doesn't exist.
So in resume, make sure to use «load save game from slot» if the game actually exist.
Also the value you take from the game instance «You was in game» will always be by value by default (so if it's set true, the game will always run the true branch output are vice-versa).
answered Feb 24 '19 at 09:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here