NGUI的UILabel

UILabel换行

go.GetComponent<UILabel>().text=str.Replace("\\n" , "\n");

UILabel字体颜色

go.GetComponent<UILabel>().text="[ffcc00]我要变[-]";

有点特殊的是最后显示的效果是[ffcc00]和UIlabe里面的colorTint 混 合的颜色,比如cocorTint选的深红色,代码里写的绿色[00cc00],最后显示出来的是近于黑色的绿色。

posted @ 2016-01-11 12:01  sevenmoons  阅读(339)  评论(0)    收藏  举报