Challenge: Re-Using Animation Clips
Tutorial
·
Beginner
·
+0XP
·
30 mins
·
Unity Technologies

In this challenge, you will bring a model into the scene, create a new Animator Controller, and add several custom Animation Clips. This process is the foundation of re-targeting and reusing animations from other models.
1. Create an Animator on your scene's model
- Select the cube in the scene.
- In the Inspector, add an Animator component.
- Create a new Animator Controller, and call it CarRotateAnimationController.
- In the Inspector, add CarRotateAnimationController to the Animator Controller parameter in Cube's Animator component.
2. Make a new Animation Clip with the target model.
- Select the Cube, and open the Animation Window.
- Create a new Animation Clip, and call it Rotation.
- Add the required Rotation key frames to create a rotation motion for the Cube. We rotated the car by 360 degrees over a 5 second period.

3. Add the custom Animation Clip to the Animator as a new Animation State
- Open CarRotateAnimatorController.
- Add the Rotation Animation Clip as a new Animation State.
- Loop the Animation so the Cube continues to Rotate.
- Hit play and try it out.
- Note: To slow down the rotation without modifying the original Animation Clip, modify the clip's Speed value in the Animator Controller Window.

4. Re-Use the Animation Clip for the Car
- Select the SportsCarChassis model in the scene.
- Add an Animator component.
- Drag the CarRotateAnimatorController into the Animator Controller parameter.
- Hit play. The car should now rotate with the cube.