Canvas object types
So far, we have used the simplest Canvas object type—a white box—but there are plenty of other object types we can use, such as images, buttons, and text. All of them use RectTransform to define their display area, but each one has its own concepts and configurations to understand.
In this section, we will explore the following Canvas object concepts:
- Integrating assets for the UI
- Creating UI controls
Let’s first start exploring how we can integrate images and fonts to use in our Canvas so that we can integrate them in our UI, using the Images and Text UI object types.
Integrating assets for the UI
Before making our UI use nice graphics assets, we need to integrate them properly into Unity to use them in our UI. In the following screenshot, you will find the UI design we propose for our game:
Figure 15.7: UI design
On top of that, we will add a Pause menu, which will be activated when the user...