- Home /
Question by
ExtremePowers · Feb 02, 2015 at 10:12 PM ·
guilagprofilerfont
SetFont Requirements?
Why does it take almost 2ms to change to font for a title? Is there a better way? Is it stupid to cache the original font?
Code:
GUI.backgroundColor = Game.SetColor(39,39,39,0);
var siz = GUI.skin.label.fontSize;
GUI.skin.label.fontSize = 75;
var fo = GUI.skin.font;
GUI.skin.font = TitleFont;
GUI.Label(Rect(0, 40, Screen.width, 75), Game.GetProjectName());
GUI.skin.font = fo;
GUI.skin.label.fontSize = siz;
GUI.backgroundColor = Game.SetColor(39,39,39,0.75f);
Comment