TextMeshPro – Input Field

The TextMeshPro - Input Field is very similar to the UI Input Field. When added to the scene, you'll see it looks nearly identical, except that the placeholder text has a different font. The UI Input Field uses an Arial font by default, while the TextMeshPro - Input Field uses Liberation Sans.

To create a UI Input Field, select Create | UI | TextMeshPro - Input Field. By default, TextMeshPro - InputField GameObject has a child named Text Area, which has two children: a Placeholder and a Text object. You will observe that it is slightly different in setup than the UI Input Field.

The Text Area GameObject contains a Rect Transform component and a Rect Mask 2D component. The Text Area ensures that the text does not ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.