Component only works properly with delay

HealthCompTest.zip (60.1 KB)

I made a project to show you how to separate the hud from the player.

You can even go once step further with the newer viewmodels.

The HUD should not be in the player character or the player controller.

Clean and decoupled.

Hud class


You could further decouple the player widget from the hud with an interface but I made a direct reference as it is present for most of the game.

1 Like