I changed font of GUI text using inspector, now after putting that GUI text into GUI.Box, i am unable to view the change in font but i see change in font size. i tried much code but tired now, need help from you people.
Thanks in Advance
var TimerGUI : GUIText;
var fontSize : int = 20;
function OnGUI () {
TimerGUI.font = Resources.Load(TimerGUI.font.name + "burnstown_dam", typeof(Font));
GUI.skin.label.fontSize = GUI.skin.box.fontSize = GUI.skin.button.fontSize = fontSize;
GUI.Box (Rect (0,0,100,50), TimerGUI.text);
GUI.Box (Rect (Screen.width - 100,0,100,50), "Top-right");
GUI.Box (Rect (0,Screen.height - 50,100,50), "Bottom-left");
GUI.Box (Rect (Screen.width - 100,Screen.height - 50,100,50), "Bottom-right");
}
i also used the below code to change font but also failed, maybe there is not support of font change in GUI.Box but i dont know and i need help