Summary
In this chapter, we introduced the basics of UI design, understanding the Canvas and RectTransform components to locate objects on screen and create a UI layout. We also covered different kinds of UI elements, mainly Image and Text, to give life to our UI layout and make it appealing to the user. Finally, we discussed how to adapt UI objects to different resolutions and aspect ratios to make our UI adapt to different screen sizes, even though we cannot predict the exact monitor our user will be playing the game on. All of this allows us to create any UI we will need in our game using Canvas.
In the next chapter, we will explore how to create UIs using UI Toolkit instead, another Unity system for creating UIs, and compare both Canvas and UI Toolkit to see where it's best to use each one.