class in UnityEngine/Inherits from: GUIElement
A text string displayed in a GUI.
用在GUI显示的一个文本字符串。
alignment | The alignment of the text. 文本的对齐方式。 |
anchor | The anchor of the text. 文本的锚点。 |
color | The color used to render the text. 用于文本渲染的颜色。 |
font | The font used for the text. 用于文本的字体。 |
fontSize | The font size to use (for dynamic fonts). 使用的字体大小(用于动态字体)。 |
fontStyle | The font style to use (for dynamic fonts). 使用字体样式(用于动态字体)。 |
lineSpacing | The line spacing multiplier. 行间距倍数。 |
material | The Material to use for rendering. 用于渲染的材质。 |
pixelOffset | The pixel offset of the text. 文本的像素偏移。 |
richText | Enable HTML-style tags for Text Formatting Markup. 启用HTML格式标签的文本格式标记。 |
tabSize | The tab width multiplier. 制表符宽度倍数。 |
text | The text to display. 用于显示的文本。 |