Changing the font size of an GUI Label

Hello there. I am creating an MainMenu and is doing some instructions for the game in GUI.
But the problem is i want the “headline” to be a bigger size than standard GUI.
I am coding the GUI and MainMenu in C#.
I already googled it and found some help here on Unity Answers. But none of it really helped me… So basicly i just want help to change the font size of the text :slight_smile:

EDIT: Probably something like this:

var style : GUIStyle;
function OnGUI()
{
GUI.Label(Rect(650, 650, 300, 50), "HELLO WORLD", style);
}

But in C# of course.

  • Frederik

Here is a class I added to the wiki a few weeks ago. Use like that :

AdvancedLabel.Draw( rect1, "Big size", new NewFontSize(20), new NewColor(Color.yellow) );
AdvancedLabel.Draw( rect2, "Small size", new NewFontSize(12) );

Fixed it myself!
This really helped me:
http://www.youtube.com/watch?v=PySRiqMK7b4