Creating simple UI meters with UMG
In this section, we will learn how to use the UMG Editor to create the UI elements that we will use in our game and how to position them on the screen.
The UMG Editor is a visual UI authoring tool. We can use the UMG Editor to create menus and a Heads-Up Display (HUD). A HUD is a transparent display that provides information without requiring the user to look away from the main view. It was initially developed for military aviation. The acronym HUD has become common in games because the information is displayed on the game screen. We want to show meters on the HUD with the amounts of health and stamina the player currently possesses. These meters that appear on the HUD are known as UI meters.
The health and stamina UI meters will look like this:
The number of targets eliminated and the ammo of the player will be displayed using text: