I’m trying to change the font size of a label.
This is my current code:
void OnGUI(){
GUI.Label(new Rect(370,30,115,90),"hello");
}
I’m trying to change the font size of a label.
This is my current code:
void OnGUI(){
GUI.Label(new Rect(370,30,115,90),"hello");
}
Look at this. It let’s you style any/all of your GUI elements! All you have to do is create a skin and, in you GUI scripts, set the skin to the skin you made! All needed info is in the link given.
You don’t need to make an entire GUISkin if all you want to do is change the label. Instead, make a new GUIStyle using the label style, then change the font size in the new style and use it in the label.
–Eric