- Home /
healthbar with scale
hi, I tried to write a script with a 3d healthbar. Everytime the enemy was hit by a bullet the health bar gets smaller. Her's the code:
http://spetools.de/code/2c95535115ba55446a971211ae5805d2
so the scale of the x achses = hitPoints has anybody an idea how this could work?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612193020im_/https://answers.unity.com/themes/thub/images/avi.jpg)