Structure:
Canvas:
↳ ...
↳ BarContainer - UI.Image:
* Image: the container, set it to whatever color and size you need
* HealthLevelAbovePlayer: the script
↳ Bar - UI.Image:
* The actual bar, set the color and height to whatever and the position to (0,0)
As long as the height is less than the Container's, it will be automatically
centered by the script
Don't forget to change the GetHealth
method in the script to update the size of the level.