最近在学unity3d,慢慢的学会了许多unity的东西,今天记录下unity3d的Label字体大小及颜色的代码,下面是显示游戏中分数的代码,,
public static int Score = 0;
void OnGUI()
{
GUI.color = Color.blue;
GUI.skin.label.fontSize = 30;
GUI.Label(new Rect(10,10,200,40),”Score:”+ Player.Score.ToString());
}