Scripting API

TextMesh

class in UnityEngine · UnityEngine.TextRenderingModule · inherits from Component

13 of 13 of Unity's membersUnity's documentation
In Tassix

Legacy 3D text, drawn by its MeshRenderer with the font's material. Laid out in the font's pixels, scaled by characterSize / 10: each character steps by its rounded advance, tabs jump to the next multiple of tabSize spaces, and a line is its font size's ascent and descent tall, the next line lineSpacing times the line height (with the line gap) further down. The box around the lines (as wide as the widest, empty text one line tall) is the renderer's bounds, placed by the anchor; alignment moves lines within it.

Properties 12

TextAlignment alignment { get; set; }
TextAnchor anchor { get; set; }
float characterSize { get; set; }
Color color { get; set; }
Font font { get; set; }
int fontSize { get; set; }
FontStyle fontStyle { get; set; }
float lineSpacing { get; set; }
float offsetZ { get; set; }
bool richText { get; set; }
float tabSize { get; set; }
string text { get; set; }

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.