How can I fill a shaped HUD (health/mana) bar with scalar quantity?

I don’t know if I really understood what you need, have you thought about multiplying your energy value by a number and plug it in your draw material’s width? That would increase and decrease the lenght of your health bar