UnityGame/Library/PackageCache/com.unity.ugui/Documentation~/TextMeshPro/TMPObject3DText.md
2024-10-27 10:53:47 +03:00

1.5 KiB

3D Text GameObjects

By default, a TextMesh Pro 3D Text GameObject has the following components:

  • Rect Transform: Controls the GameObject's position and size. For more information, see the Rect Transform documentation in the Unity Manual.

Note

Note: If you want to use the Rect Transform component's anchoring system, the TextMesh Pro component's parent GameObject must also have a Rect Transform component.

  • Mesh Renderer: Renders the GameObject. For more information, see the Mesh Renderer documentation in the Unity Manual.
  • TextMesh Pro UGUI (Script): Contains the text to display, and the properties that control its appearance and behavior. These properties are described below.
  • Material: A Unity material that uses one of the TextMesh Pro shaders to further control the text's appearance. For more information see the Shaders section.

Properties Overview

Example image

[!include]

[!include]

[!include]

[!include]

[!include]

[!include]

[!include]

[!include]

[!include]

[!include]