To display a text message with sophisticated TextMeshPro visual styling, follow these steps:
- Create a new Unity 3D project.
- Add a new UI TextMeshPro - Text GameObject in the scene by going to GameObject | UI | TextMeshPro – Text. Name this GameObject Text-sophisticated. Choose Import TMP Essentials if prompted.
TextMeshPro GameObjects do not have to be part of the UI Canvas. You can add a TextMeshPro GameObject to the scene directly by choosing Create | 3D Object | TextMeshPro – Text from the Scene window.
- Ensure that your new Text-sophisticated GameObject is selected in the Hierarchy window. In the Inspector window for Rect Transform, click on the Anchor Presets square icon, hold down Shift + Alt, and click on the top and stretch rows.
- Ensure the following properties are set:
Font Settings:
- Font Asset set to Anton SDF
- Material Preset set to Anton SDF - Outline
- Font size set to 200
- Alignment set...