Rich Text 控件
void Start(){
1、设置字体大小
transform.GetComponent<Text>().Text=
"A"+"</size=50>"+"B"+"</size>";
2、设置字体加粗
transform.GetComponent<Text>().Text=
"A"+"</b=50>"+"B"+"</b>";
3、设置字体倾斜
transform.GetComponent<Text>().Text=
"A"+"</i=50>"+"B"+"</i>";
4、设置字体的颜色
transform.GetComponent<Text>().Text=
"A"+"</Color=#字体颜色代码>"+"B"+"</Color>";
}