void OnGUI()
{
GUIStyle fontStyle = new GUIStyle();
fontStyle.normal.background = null; //设置背景填充
fontStyle.normal.textColor = Color.red; //设置字体颜色
fontStyle.fontSize = 30; //字体大小
GUI.Label(new Rect(10, 10, 500, 200), "测试", fontStyle);
}
GUI easy to use
Guess you like
Origin blog.csdn.net/qq_38513810/article/details/130646157
Recommended
Ranking