I have text to display my character current health but I want the text to be bigger how would I make it change the font size, by the way here is my code:
var hp = 100;
function OnGUI () {
GUI.Label (Rect (300,300,100,100),hp.ToString());
}
I have text to display my character current health but I want the text to be bigger how would I make it change the font size, by the way here is my code:
var hp = 100;
function OnGUI () {
GUI.Label (Rect (300,300,100,100),hp.ToString());
}
Have a look at the Unity docs for custom GUI’s. If all you want is to change the size of a single GUI element then look at GUIStyle.