Summary
In this chapter, we started by introducing some of the most commonly used UI component classes of the uGUI solution, such as the Canvas, Rect Transform, and Image components. We then explained the Event System in Unity, the legacy Input Module, and the new more powerful Input System package provided by Unity.
We also discussed how to decouple components from each other when developing the UI in Unity by using the MVVM architectural pattern.
Finally, we explored some best practices for implementing the game UI in Unity to optimize the performance problems caused by the UI.
In the next chapter, we will learn about the animation system in Unity and, at the same time, we will also introduce how to optimize animation performance in Unity.