Hi,
I am trying to show text on my screen with a custom font and I want to be able to set the size. I cannot get it to work, as I have no clue what I am doing. How can I actually get the correct font-size and use the custom font which I assign in the inspector?
var font : Font;
var fontSize : int = 18;
static var showText : String = "Welcome!";
function OnGUI () {
GUIStyle.fontSize;
GUI.Label (Rect (Screen.width / 2 - 250, Screen.height - 55, 500, 50), showText);
}