- Home /
Dynamic Health Bar in unity 4.6
Hey so i need some help to create a health bar with the new UI system
i have a Variable called CurrentHealth which holds the health that the player has left. i want to display a heart for each health point the player has(like the minecraft hearts) and i need these hearts to expand out wards for the more health you have.
for example if i have 1 health left there will be one heart centered in the screen. if i have 2 health left the will be 1 heart either side of the center but there wont be any exactly centered. if i have 3 health left 1 heart will be centered and there will be 1 either side of that heart.
i would also like to be able to edit this at run time like this example
https://www.youtube.com/watch?v=ipdLXsrFuMY&list=PL7AE076AFAFD3C305#t=1420
thanks ~Scott
Your answer
Follow this Question
Related Questions
Unit Healthbar moving when player moves. 1 Answer
Change colour of guiTexture from green to red. 1 Answer
Drawing Sector around GameObject in GameView: GUITexture or 3D Object 1 Answer
How to change pixel inset of GUITexture? 2 Answers
guitext and texture following gameobject, how to destroy and alternatives? 1 Answer