UI Text and TextMeshPro
We’ve spent some time with UI Text objects already as they are the one of most basic graphical UI elements. We discussed them briefly in Chapter 6 because it was pretty hard to start laying out UI without having anything to display visually. Text objects are also always children of new Buttons, which we discussed in the previous chapter. However, we haven’t explored the properties of Text objects or how to work with them in code.
In this chapter, we will explore UI Text objects more thoroughly. We will also discuss Text-TextMeshPro objects and how they allow for even more control of the text in our game.
In this chapter, we will discuss the following topics:
- Using UI Text objects and setting their properties
- Using TextMeshPro -Text objects and setting their properties
- Working with fonts and font assets
- Using markup format with UI Text objects and style sheets with TextMeshPro objects
- Making Text that animates as if...