Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Changing UI Panel size

$
0
0
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

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>