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. Emacs 之窗口管理

    // */ // ]]> Emacs 之窗口管理 Table of Contents 1. Emacs 窗口相关 1.1. Emacs 里调整 window 大小 1.2. Emacs winn ...

  2. JQ学习(三)-ajax

    jQuery - AJAX jQuery load() 方法 jQuery load() 方法是简单但强大的 AJAX 方法. load() 方法从服务器加载数据,并把返回的数据放入被选元素中. 语法 ...

  3. Swift3.0语言教程获取字符串长度

    Swift3.0语言教程获取字符串长度 Swift3.0语言教程获取字符串长度,当在一个字符串中存在很多的字符时,如果想要计算字符串的长度时相当麻烦的一件事情,在NSString中可以使用length ...

  4. yii2.0 的数据的 查 删

    数据的查询 /**     * 查询正在使用的数据 model 层     */ public function selectdata(){ return $this->find()->a ...

  5. Flume interceptor 使用注意事项

    1. 在使用 Regex Filtering Interceptor的时候一个属性是excludeEvents 当它的值为true 的时候,过滤掉匹配到当前正则表达式的一行 当它的值为false的时候 ...

  6. 转载:回编译APK出错:java.nio.char set.MalformedInputException: Input length = 1

    使用APKtool回编译APK,出现错误如下:    Exception in thread "main" org.yaml.snakeyaml.error.YAMLExcepti ...

  7. three.js入门3

    为什么要用three.js Three.js为我们封装了底层的WebGl接口,使我们在无需掌握繁冗的图形学知识的基础下可以轻松的创建三维场景.相比较使用底层的WebGL我们可以使用更少的代码,大大的降 ...

  8. 优化WPF 3D性能

    Maximize WPF 3D Performance .NET Framework 4.5   As you use the Windows Presentation Foundation (WPF ...

  9. ural 1143. Electric Path

    1143. Electric Path Time limit: 1.0 secondMemory limit: 64 MB Background At the team competition of ...

  10. OpenCV 第一课(安装与配置)

    OpenCV 第一课(安装与配置) win10,opencv-2.4.13, 安装, vs2013, 配置 下载安装软件 官网OpenCV下载地址下载最新版本,我下载的是opencv.2.4.13,然 ...