Fixing issue with Hud not being valid


Problem:

This week we spent a lot of time playtesting and doing small fixes for issues we found. One of these small issues was found when loading in from the main menu into the game. I noticed that as soon as I stopped the editor playthrough I was met with a bunch of errors involving the hud. Specifically it could not find a reference to the reticle when trying to hide/show the interact text and change the reticle color.  

Errors Image:


Solution:

To fix this issue, I began by breakpointing the error and checking the values of the reticle. It didn't take me too long to realize the issue was it was null and it could not run the show and hide functions properly. To fix this, I decided to add in a simple isValid? Node into each section the error was popping up at. After that I added another one for setting the reticle color.. With these checks in place, I was no longer getting errors when loading into the game.

 

Blueprint Fix:



- Christian Ortiz, VECCA Dev

Leave a comment

Log in with itch.io to leave a comment.