3.5、richtextlabel文本

可以像Word文档一样编辑出多样的内容,图片,字体颜色大小下划线、超链接背景等等。

Defaults:

默认字体

默认图集

Blank Texture :空白的纹理

Appearance :

Font Size 默认字体大小

Line Height 行的高度,最小也不会小于默认字体大小(系统处理)。

TextStyle 默认文本的风格,加粗下划线斜体等。

keep whitespace 是否使用Text中文本的换行(Html的换行是:<br/>,如果选中,那么正常文本中的普通换行也算是换行)

Text Color 默认的文本颜色。

Alignment 文本的对其方式。

Layout :

Auto Height 是指自动调整上面Layout-》 Size-》 Height的大小。如果设置了那么下面的滚动条Scrolling选项就不能再用了。要根据实际的情况进行取舍。

Scrolling:

Allow Scroll是否允许滚动。

Scroll Pos x,y  设置水平,垂直滚动条的起始滚动值。

Add Momentum 作用还是未知,

水平滚动条对象。

垂直滚动条对象。

DF-gui呢使用了编写网页的标记性语言。 大家可以了解一下例子看看,下面是例子的一部分代码。

编辑上面的图片中的内容需要填写的文本的内容。如下:

Text:

<h1 color=yellowstyle="vertical-align: top; margin: 0;"><imgsrc="dfgui-icon" height=100 color=white> Using Rich TextMarkup</h1>

<h2color=cyan>Introduction</h2>

<p padding="5 10" style="text-align:justify; margin: 25px">

The DF-GUI Rich Text Control uses Unity'sdynamic fonts system to render TTF or OTF fonts

without requiring the use of a textureatlas. The dynamic font system builds a dynamic

texture atlas internally "ondemand", allowing you to use multiple font styles (like<b>bold</b> and

<i>italic</i>) as well as<font size="125%">different sizes</font> all in the sameline of text.

</p>

<p style="text-align: justify;margin: 25px">This also allows you to mix and match character sets inthe same label, like the following:

<ul>

<li>Japanese:<span style="color: orange">日本語</span></li>

<li>Chinese:<span style="color: orange">汉语/漢語</span></li>

<li>Korean:<span style="color: orange">한국어/조선말</span></li>

<li>Hebrew:<span style="color: orange">עִבְרִית</span></li>

<li>Greek:<span style="color: orange">κρίνω</span></li>

<li>etc...</li>

</ul>

</p>

<p style="text-align: justify;margin: 25px">

All text in this panel was rendered with asingle <b>dfRichTextLabel</b> control.

All font styles, colors, sizes, and effectswere specified through the use of an

HTML-like markup that has been specificallydesigned to be familiar to people

who have experience with HTML. Much like<a href="http://docs.unity3d.com/Documentation/Manual/StyledText.html"style="color: Green; font-style: bold">Unity's built-in&quot;rich text&quot; markup</a>,

the<strong>dfRichTextLabel</strong> control uses a subset of thespecified HTML tags to control

text formatting, but unlike Unity'ssolution the tags that <strong>dfRichTextLabel

………………………………………….

<br/>

unity3d插件Daikon Forge GUI 中文教程6-高级控件richtextlabel的使用的更多相关文章

  1. unity3d插件Daikon Forge GUI 中文教程-3-基础控件Button和Sprite的使用

    (游戏蛮牛首发)大家好我是孙广东.官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上.要观看是须要FQ的. 只是教 ...

  2. unity3d插件Daikon Forge GUI 中文教程3-基础控件Button和Sprite的使用

    2.2添加一个按钮Button 来看看特有的属性:Button Properties Data 显示的文本 Behavior 中的几个: Aoto Size 选中时就是按钮的背景会根据Data中的文本 ...

  3. unity3d插件Daikon Forge GUI 中文教程2-基础控件Label的使用

    我们先来设置 UI Root 中的如下:屏幕大小为1024*768 2.1  新建一个Label 控件 先来看看Control Properties (基本上是所有控件都共用的)的以后不再介绍,参数: ...

  4. unity3d插件Daikon Forge GUI 中文教程1-Daikon Forge介绍

    DF-GUI特点: ·        深编辑器集成:DF-GUI提供广泛的整合与Unity3D编辑环境,包括自定义检查人员对每个组件向导来简化复杂的多步任务,提高生产力的上下文菜单,编辑控件在一个所见 ...

  5. unity3d插件Daikon Forge GUI 中文教程-1-Daikon Forge介绍

    (游戏蛮牛首发)大家好我是孙广东官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上,要观看是须要FQ的. 只是教程 ...

  6. unity3d插件Daikon Forge GUI 中文教程-5-高级控件listbox和progress bar的使用

    (游戏蛮牛首发)大家好我是孙广东.官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上,要观看是须要FQ的. 只是教 ...

  7. unity3d插件Daikon Forge GUI 中文教程7-高级控件slider的使用

    3.6.slider滑块              我们说说前面这个图片.对象 Appearance: Atlas 图集: Track 滑块的轨道图片 Back color滑块的轨道图片的主颜色. O ...

  8. unity3d插件Daikon Forge GUI 中文教程5-高级控件listbox和progress bar的使用

    3.3.listbox列表框 Atlas 图集: 下面应用到的精灵都是在这里的. ListBox中的内容: 背景精灵 图片的主颜色 Padding边距 Scrollbar 滚动条对象的预制体或者对象, ...

  9. unity3d插件Daikon Forge GUI 中文教程4-高级控件Checkbox和dropdownlis的使用

    第三节  高级的控件 Checkbox单选和多选.dropdownlis下拉列表.listbox列表框.progressbar进度条.richtextlabel富文本.slider滑块.textbox ...

随机推荐

  1. LoadRunner11录制APP脚本(1)

    1.测试准备: a.首先安装LoadRunner11.0的版本跟新

  2. ViewPager的广告条轮播

    首先布局 <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:androi ...

  3. CSS3 2D 转换

    2D 转换 在本章中,您将学到如下 2D 转换方法: translate() rotate() scale() skew() matrix() 您将在下一章学习 3D 转换. 实例 div { tra ...

  4. java中 几种数据库连接池 的写法

    JDBC连接数据库 •创建一个以JDBC连接数据库的程序,包含7个步骤: 1.加载JDBC驱动程序: 在连接数据库之前,首先要加载想要连接的数据库的驱动到JVM(Java虚拟机), 这通过java.l ...

  5. js:方法1. 数组

    Array.every() array.every(f); array.every(f, o); f(array[i], i, array) [1,2,3].every(function(x) { r ...

  6. java.net.SocketException: No buffer space available

    https 访问url在调用量不大的情况下 java.net.SocketException: No buffer space available (maximum connections reach ...

  7. BZOJ 2631 Tree ——Link-Cut Tree

    [题目分析] 又一道LCT的题目,LCT只能维护链上的信息. [代码] #include <cstdio> #include <cstring> #include <cs ...

  8. MFC 修改 单文档 SDI 窗体 标题

    程序主窗口标题栏的一般形式为: 文档标题—主窗口标题 1.修改文档标题 修改CExamDoc::onNewDocument()函数为: BOOL CExamDoc::OnNewDocument() { ...

  9. Codeforces 627A XOR Equation(思路)

    题目大概说两个正整数a.b,已知s=a+b以及x=a xor b的值,问有几种a.b这样的数对. 我知道异或相当于无进位的加法,s-x就是其各个位置的进位,比如s-x=1010,那就表示a和b的第1位 ...

  10. Android开发环境变量配置总结

    每次重装系统或者拿到一台新电脑都得重配Android的环境变量,每次都得上网查,索性就记在这儿吧. “系统属性->高级系统设置->环境变量” 打开环境变量配置窗口. JDK配置: 新建JA ...