Wing的小站

  • 首页
  • IT新闻
  • 技术文章
  • 生活随笔
  • 休闲娱乐
  • 个人作品
  • 留言板
  • 关于博主
JavaFX,Unity3D,Android,IOS,技术教程,生活随笔
  1. 首页
  2. 技术文章
  3. 正文

Unity3D UI之RichText

2015年3月17日 3938点热度 0人点赞 0条评论

在Unity3D 4.6中,增加了新的UI系统,同样的开始支持富文本了。那么我们来看看Rich Text支持哪些标记。

1.粗体,采用<b></b>的标记,例如:<b>HelloWorld></b>

2.斜体, 采用<i></i>的标记

3.颜色,采用<color=#rrggbbaa></color>的标记,也可以直接使用颜色名称,例如:<color=#ff0000ff>HelloWorld</color>或者<color=red>HelloWorld</color>

另外,还有meterial和quad,都是用于Text Meshs的,例如:<material=2>texturally</material>和<quad material=1 size=20 x=0.1 y=0.1 width=0.5 height=0.5 />。

标签: UI Unity
最后更新:2017年4月14日

wing1314

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 Wing的小站. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鄂ICP备17006951号-1

42011102000591