Hey Obolus, the one in the picture above was just a sprite and I changed it by using a sprite array to update the sprite based off the player health.
This was not the best approach and I did it this way at the time because I didn’t know how to do it a better way.
More recently I put together a tutorial on how to create a fully animated health bar within Unity by using a UI slider. Hope this helps and answeres your question!