Change GUI font size

if (Time.timeSinceLevelLoad >zaman3) {

timeunder -= Time.deltaTime;
Debug.Log(“zamançalıştı”);
}
}

void OnGUI(){

if(timeunder >0){

GUI.Label(new Rect(500,150,500,500),"TIME REMAINING : "+(int)timeunder);

}

else {

GUI.Label(new Rect(500,150,500,500),“TiME’S UP”);
Application.LoadLevel (“gameovermenü”);

}

}

Hİ guys I need to Change GUI size maybe color at Least I need change size very important

What should I do

You may want to look into this: Unity - Scripting API: GUIStyle

//pseudocode

GUIStyle myStyle = new GUIStyle();

myStyle.fontSize = 72;


GUI.Label(new Rect(500,150,500,500),"TIME REMAINING : "+(int)timeunder, myStyle);
2 Likes

that’s what I want thank you so much

1 Like

The new UI makes things like this so much easier.