UGUI Text text control rich text

Learn UGUI's Text control for displaying text! Basic properties are no longer verbose!

Alignment: text is aligned horizontally and vertically,

 

Horizontal Overflow: horizontal

        Wrap: The size and number of text exceed the width of the Text border and are no longer displayed

        Overflow: The text exceeds the border width and is still displayed

 

Vertical Overflow: Vertical

        Truncate: Truncate, the text exceeds the height of the Text border vertically, and is not displayed

        Overflow: The text exceeds the height of the border, but it is still displayed

 

Best Fit: After making the text adaptively checked, the Font size will no longer take effect.

The border is very large, and the text is displayed at the maximum font size of Max Size.

The border is very small, and the text will display the Min Size font size at the minimum. If the border cannot display the MinSize font size, the text will no longer be displayed.

      

 

Rich Text:  Whether to support rich text, if you check it, it means that some texts are changed in size, color, etc. with specific tags. <color=red>Text</color>. The following is the rendering

Currently supported: tags supported

 

Rich text column:

<color=#808080ff>盘子</color>

<b>Plate</b>

<i>盘子</i>

<b><i>盘子</i><b>

UGUI Text Control - Plate Face - Blog Park

Unity text solution: rich text plugin TextMeshPro_Peter_Gao_'s blog - CSDN blog_unity rich text plugin

Guess you like

Origin blog.csdn.net/qq_42672770/article/details/123443482