Simple use of Unity rich text

1. Check Rich Text

2. Tags supported by Unity

b: text in bold

i: display text in italics

size: Set the size of the text (in pixels) according to the parameter value

color: Set the color of the text according to the parameter value

material: this is only useful for text meshes, the text part is rendered using the material specified by the parameter

quad: this is only useful for text grids, rendering images inline with the text 

3. Colors supported by the color tag:

black:#000000ff
blue:#0000ffff
brown:#a52a2aff

Note: There are too many colors, so I won’t give more examples here. You can set the color you need in Color, then copy its Hexadecimal, and convert the A attribute value in Color to hexadecimal, and add it after the Hexadecimal attribute value. The hexadecimal of the color set in the figure below The base representation is: #F51111FF

 4. Example of use

 

 Conclusion: The tree that embraces is born at the end of the hair; the nine-story platform starts from the pile of soil; the journey of a thousand miles begins with a single step.

 

Guess you like

Origin blog.csdn.net/falsedewuxin/article/details/129904042