The creation of UI elements is done in the UMG, which is a visual UI authoring tool. We can use the UMG to create a menu and game Heads-Up Display (HUD). A HUD is a kind of transparent display that provides information without requiring the user to look away. We want to show meters on the HUD with the amounts of health, stamina, and ammo the player currently possesses. These meters that appear on the HUD are known as UI meters.
To create a HUD that will display the UI meters for health, stamina, and ammo, we will first need to create variables within the player character that can track these values. Before doing so, ensure that the box labeled Instance Editable is checked so that other Blueprints and objects can manipulate the variables. When a variable is made editable, it will be shown with a yellow open eye symbol next to its name in the Variables...