static var SCORE = 0;
var GGUISkin : GUIText;
function OnGUI()
{
GUI.Label (Rect (840, 35, 100, 20),SCORE.ToString());
i have this varable score and it displays on screen but i want to change its font… its preetty small when shows
static var SCORE = 0;
var GGUISkin : GUIText;
function OnGUI()
{
GUI.Label (Rect (840, 35, 100, 20),SCORE.ToString());
i have this varable score and it displays on screen but i want to change its font… its preetty small when shows
Create a GUIStyle:
var myStyle : GUIStyle;
Add a font to it inside of the editor of the size you want, then use this variant on your label:
GUI.Label (Rect (840, 35, 100, 20),SCORE.ToString(), myStyle);