I am making a HUD and I have the HUD class set to ‘MainHUD’ and my main HUD contains this:
and the ‘Health’ Widget contains this:
I don’t know what the problem is and I really want the HUD to work
I am making a HUD and I have the HUD class set to ‘MainHUD’ and my main HUD contains this:
and the ‘Health’ Widget contains this:
I don’t know what the problem is and I really want the HUD to work
Move your add widget code to your player’s blueprint
Basically follow this tutorial:
https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/1/index.html
Your Created health widget must have an owning player; i.e either your player controller or player character otherwise it wouldn’t know who created the widget.It is recommended to have player controller if you have a separate player controller controlling the movement of the character else the play character.Just simple drag off a pin from owing player and type ‘get player controller’.
Have you added your HUD class to the GameMode?