To create the binding of the health variable with the Health bar UI, follow these steps:
- In the HUD Blueprint Editor, find the Hierarchy panel and click on the Health bar object nested underneath the Player Stats Bars object.
- With Health bar now selected, locate the Percent field in the Progress category of the Details panel. Click on the Bind button next to Percent and select Create Binding, as shown in this screenshot:
- The HUD Editor will switch from the Designer view to the Graph view. A new Function has been created, allowing us to script a connection between the meter and the player's health ...