function OnGUI(){
GUI.Box(Rect(10,Screen.height-20,100,30),"Health: "+Mathf.Round(playerHealth.health));
}
i try to change the size off my Health display but it only change posision i want it too be 3 times larger… Am i doing something wrong?
Thanks for any help !
Suddan
April 27, 2014, 6:44pm
2
fredr92:
function OnGUI(){
GUI.Box(Rect(10,Screen.height-20,100,30),"Health: "+Mathf.Round(playerHealth.health));
}
i try to change the size off my Health display but it only change posision i want it too be 3 times larger… Am i doing something wrong?
Thanks for any help !
The third and fourth parameter have to be altered if you want to change the size. The third paramter of the Rect-constructor is the width, the fourth is the height.
The GUI Box is increasing but what inside the Box is not getting bigger “Health 100”