unity 字体设置
作者:互联网
//字体居中 sunOBJ.GetComponent<Text>().alignment = TextAnchor.MiddleCenter; //字体30号 sunOBJ.GetComponent<Text>().fontSize = 30; //字体颜色 sunOBJ.GetComponent<Text>().color = new Color32(23, 123, 44, 255);
标签:TextAnchor,23,30,unity,字体,GetComponent,设置,sunOBJ 来源: https://www.cnblogs.com/zqiang0803/p/14754084.html