Summary
In this chapter, we started by introducing some of the most important concepts of the Unity animation system, such as Animation Clips, Animator Controllers, Avatar, and the Animator component. Then, we demonstrated how to implement 3D animation in Unity, including how to import animation assets into the Unity Editor, how to create an Animation Event on an Animation Clip, how to set up animation parameters to control an animation via C# code, and so on.
We also discussed how to implement 2D animation in Unity. The implementation of 2D animation is different from the implementation of 3D animation. A common implementation technique for 2D animation is to use Sprite Animations, which are Animation Clips that are created for 2D assets.
Finally, we explored some best practices for implementing animation in Unity to optimize the performance problems caused by the animation system.
In the next chapter, we will learn about the Physics system in Unity, and at the same time...