3.5 richtextlabel Rich Text
You can edit a variety of content, images, font color, underline, hyperlink background, and so on like a Word document.
Defaults:
Default font
Default Gallery
Blank texture blank texture (I don't know how to use it)
Appearance:
Font size default font size
The line height is not smaller than the default font size (processed by the system ).
Textstyle default text style, bold underline italic, and so on.
Whether the keep whitespace uses text line breaks in text (HTML line breaks are: <br/>. if selected, normal line breaks in normal text are also line breaks)
The default text color.
Alignment text.
Layout:
Auto height refers to automatically adjusting the size of layout-> size-> height above. If this parameter is set, the following scrolling options cannot be used. Make a trade-off based on the actual situation.
Scrolling:
Whether allow scroll allows scrolling.
Scroll POS x, y sets the starting scroll value of the horizontal and vertical scroll bars.
The role of add momentum is unknown,
Horizontal scroll bar object.
Vertical scroll bar object.
DF-Gui uses the markup language for compiling web pages. Let's take a look at the example. The following is part of the sample code.
Edit the content of the text to be filled in. As follows:
Text:
<H1 color = yellowstyle = "vertical-align: Top; margin: 0; "> using rich textmarkup
<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> Japan: <span style = "color: Orange"> Japan </span> </LI>
<Li> Chinese: <span style = "color: Orange"> Chinese/Simplified Chinese </span> </LI>
<Li> Korean: <span style = "color: Orange"> ??? /??? </Span> </LI>
<Li> Hebrew: <span style = "color: Orange"> ???????? </Span> </LI>
<Li> Greek: <span style = "color: Orange"> Kappa P? ν ω </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 inclutswere specified through the use of
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 & #39; 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 & #39; ssolution the tags that <strong> dfrichtextlabel
.................................................
<Br/>
Unity3d ins daikon forge GUI Chinese tutorial-6-use of advanced control richtextlabel