ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


Text Mesh component reference

Explore the properties and settings in the Text Mesh component to generate 3D geometry that displays text strings.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

The Text Mesh component generates 3D geometry that displays text strings.
注
The Text Mesh component has limited functionality. For information on more recent, full-featured ways of displaying text, see Creating user interfaces (UI).
To create a new Text Mesh, go to Component > Mesh > Text Mesh.

Text Mesh properties

Property:

Function:

TextThe text that will be rendered
Offset ZHow far should the text be offset from the transform.position.z when drawing
Character SizeThe size of each character (This scales the whole text.)
Line SpacingHow much space will be in-between lines of text.
AnchorWhich point of the text shares the position of the Transform.
AlignmentHow lines of text are aligned (Left, Right, Center).
Tab SizeHow much space will be inserted for a tab '\t' character. This is a multiplum of the 'spacebar' character offset.
Font SizeThe size of the font. This can override the size of a dynamic font.
Font StyleThe rendering style of the font. The font needs to be marked as dynamic.
Rich TextWhen selected this will enable tag processing when the text is rendered.
FontThe TrueType Font to use when rendering the text.
ColorThe global color to use when rendering the text.