Rendering order (HUD)
i have a simple FPS game and i'm kinda stuck with the HUD.
i have the player controller BP which sets all the different variables (Health, Ammo etc.).
when i launch the game, the HUD won't update until i do something (walk, fire etc.).
i have a function which updates the HUD in the player controller class and i call it whenever i need to update the HUD
i need to somehow call the "UpdateHUD" function before the HUD is being rendered.
All you have to do is call the UpdateHUD function right before you add it to the viewport. You can also spawn the HUD in the controller's Begin Play Event and call the UpdateHUD function right after.
answered Jul 09 '16 at 09:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here