Unity2017.1 official Ugui Document translation--text

Source: Internet
Author: User

Text literal

The text control displays a non-interactive piece of text to the user. This can is used to provide captions or labels for other GUI controls or to display instructions or other text.

The text control displays a non-interactive text fragment to the user. It can serve as a caption or label for other GUI controls, or as a descriptive text, or for other purposes.

Properties

Property

Property
: Function:
Text The text displayed by the control.
Character
Font The Font used to display the text.
Font Style The style applied to the text. The options are Normal, bold, Italic and Bold and Italic.
Font Size The size of the displayed text.
Line Spacing The vertical separation between lines of text.
Rich Text Should markup elements in the text is interpreted as Rich text styling?
Paragraph
Alignment The horizontal and vertical alignment of the text.
Align by Geometry Use the extents of glyph geometry to perform horizontal alignment rather than glyph metrics.
Horizontal Overflow The method used to handle the situation where the text was too wide to fit in the rectangle. The options are Wrap and Overflow.
Vertical Overflow The method used to handle the situation where wrapped text was too tall to fit in the rectangle. The options are Truncate and Overflow.
Best Fit Should Unity ignore the size properties and simply try to fit the text to the control ' s rectangle?
Color The color used to render the text.
Material The Material used to render the text.
Properties function
Text Text displayed by the control
Character
Font The font used to display text
Font Style The style applied to the text. Options are normal, bold, italic, or bold italic
Font Size The size of the text
Line Spacing Line spacing
Rich Text Whether the markup element in the text should be interpreted as rich Text style
Paragraph
Alignment Horizontal and vertical alignment of text
Align by Geometry

Use the range of glyph geometries to perform horizontal alignment instead of glyph metrics

Horizontal Overflow This method is used to handle situations where the text is too wide to fit into a rectangular region. Options are wrap and overflow
Vertical Overflow

This method is used to handle situations where the text is too high to fit into a rectangular region. Options are truncate and Overflow

Best Fit Does unity want to ignore dimension properties, simply place the text in the control's rectangular area
Color The color of the text
Material Material of the text

A default text element looks like this:

The default text elements are as follows:

A Text element.

Details

With

Some controls (such as Buttons and toggles) have textual descriptions built-in. For controls that has no implicit text (such as sliders), you can indicate the purpose using a label created with a text Control. Text is also useful for lists of instructions, story text, conversations and legal disclaimers.

There are some spaces (such as buttons and toggles) with built-in text. For controls that do not have implicit text (such as sliders), you can create a text control to achieve the purpose. Text can also be used to display description lists, stories, dialogs, and disclaimers

The text control offers the usual parameters for font size, style, etc, and text alignment. When the Rich Text option is enabled, markup elements within the Text would be treated as styling information, so You can have just a single word or short section in boldface or in a different color, say (see the page about Rich Text fo R details of the markup scheme).

Text provides common parameters such as font size, style, text alignment, and so on. When Rich text is selected, the label element in text is used as the style information, so you can just make one word or a small paragraph bold or change the color (get more information about the tag on the Rich Text page)

Hints

Tips

    • See the Effects page-for-A-shadow or outline effect to the text.
    • For information about how to apply a simple shadow or contour effect to text, see the effects page

Unity2017.1 official Ugui Document translation--text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.