Change GUI Font Size Dynamically?


I have a GUI label in my OnGUI function, and I want to be able to increase the size of the font within my script. Like so:

var fontSize : int = 20;

function OnGUI(){

   GUI.Label(100,30,0,0),"WAVE ONE!", ?fontSize?);


Thus causing the font size to grow over fps… How would I achieve something like this?

GUIStyle.fontSize, only for dynamic fonts. (You can’t use fontSize++ in OnGUI like that, though, it will be framerate-dependent.)