Next, we will create the UI components to display the Cucumber Man's health:
- Right-click the HUD_Canvas GameObject in the Hierarchy panel and select UI | Text. This will create a text object subordinate to the canvas.
- Rename the text component as Health_Label.
- Right-click the HUD_Canvas GameObject in the Hierarchy panel and select UI | Slider. This will create a slider object subordinate to the canvas.
- Rename the slider component as Health_Slider.
So far, we have created a canvas with text and slider components. Next, we will orient the UI components on the canvas to match the placement in our HUD design from the previous section:
- In the Hierarchy panel, double-click the HUD_Canvas. This will focus ...