- Import sample
- Drag&Drop
HP_bar
prefab - Use
Subscribe
to subscribe onevent Action callback
on target script - For setup change params on
HP_Bar
script andSpriteRrenderer
. Do not touch material (all params on material are grabing from HP_Bar and SpriteRenderer)
You can change bar sprite to what you want.