Unity TextMeshPro

Unity TextMeshPro

Introduction

TextMeshPro (also referred to as TMP) claims to be Unity's ultimate text solution, and it is a perfect replacement for Unity's UI text and legacy text meshes.

Powerful yet easy to use, using advanced text rendering techniques along with a set of custom shaders; delivering substantial visual quality improvements while giving users incredible flexibility in text styling and textures.

TextMeshPro provides complete control over text formatting and layout with character, word, line and paragraph spacing, kerning, justified text, links, over 30 available rich text tags, support for multiple fonts and sprites, custom styles, and more improved control.

Excellent performance. This improved visual quality and flexibility comes at no additional performance cost since TextMeshPro creates geometry like Unity's text components, using two triangles per character.

This passage is the introduction of the official website, directly translated from Unity - manual: TestMeshPro (unity3d.com)

It is important to note that Unity officially deleted Text starting from the 2021 version and changed it to use TextMeshPro as a solution, that is, you cannot directly create Text for use. Of course, you can create an empty object and then mount Text to Indirect use, but not very convenient to use.

So let's learn how to use TextMeshPro with peace of mind. After all, the functions are still very powerful.

Instructions for use

properties panel

おすすめ

転載: blog.csdn.net/yr1102358773/article/details/129298506