Introducing UI Text and Image
It’s kind of hard to make any UI examples without using text or images. So, before we cover examples of layouts, let’s first look at the basic properties of the UI Text and UI Image GameObjects. UI Text and UI Images are discussed more thoroughly in Chapter 11 and Chapter 12.
When you create a new Text object using + | UI | Text, you will see that it has a Text Component.
Figure 6.35: The Text component
You can change the displayed text by changing the words in the Text box. In Chapter 11, we’ll take a closer look at the individual properties of the Text component, but for now, it should be fairly obvious what most of the properties do.
When you create a new Image object using + | UI | Image, you will see that it has an Image component.
Figure 6.36: The Image component
Remember that a Panel is essentially an Image but with a few properties prefilled. When you create...