Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityEngine.TextRenderingModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The TextRendering module provides access to Unity's text rendering system.

Classes

FontScript interface for font assets.
TextGeneratorClass that can be used to generate text for rendering.
TextMeshA script interface for the text mesh component.

Structs

CharacterInfoSpecification for how to render a character from the font texture. See Font.characterInfo.
TextGenerationSettingsA struct that stores the settings for TextGeneration.
UICharInfoClass that specifies some information about a renderable character.
UILineInfoInformation about a generated line of text.
UIVertexVertex class used by a Canvas for managing vertices.

Enumerations

FontStyleFont Style applied to GUI Texts, Text Meshes or GUIStyles.
HorizontalWrapModeWrapping modes for text that reaches the horizontal boundary.
TextAlignmentHow multiline text should be aligned.
TextAnchorWhere the anchor of the text is placed.
VerticalWrapModeWrapping modes for text that reaches the vertical boundary.

Did you find this page useful? Please give it a rating: