Hello, i want to make a simple HP bars with uGUI.
I'm using 2 panels for hp bar: 1 indicates the whole bar (black one) and other one indicates remaining hp (red one).
I'm making something like PVP Fighting scene, so there're 2 hp bars in the top of the screen.
When i lower players HP i change red bar size using:
transform.localscale(currentHp - damage);
In other words i want to make a standrt hp bars like in Mortal Combat.
My problem is in the screen:...
Changing UI Panel size
I'm using 2 panels for hp bar: 1 indicates the whole bar (black one) and other one indicates remaining hp (red one).
I'm making something like PVP Fighting scene, so there're 2 hp bars in the top of the screen.
When i lower players HP i change red bar size using:
transform.localscale(currentHp - damage);
In other words i want to make a standrt hp bars like in Mortal Combat.
My problem is in the screen:...
Changing UI Panel size