Creating an animation in Unity
Last updated
Last updated
The Unity Editor includes tools that you can use to animate properties of objects. The properties that you can animate include position, scale, rotation, whether an object is active, and material properties.
The following instructions describe how to create a basic animation in Unity. For more detailed information, refer to the Animation Window Guide in the Unity documentation.
In the Hierarchy panel, select the object that you want to animate.
From the Window menu, select Animation > Animation.
In the Animation panel, select Create.
Choose a name and folder to use for the animation file.
Select Add Property, and then select the plus symbol for the property that you want to animate.
Optional: Drag the end keyframe to your desired end time for the animation loop.
Repeat the following steps for each keyframe that you want to create:
Drag the playhead bar to a point on the timeline where you want to create a keyframe.
Enter property values for that time in the animation. A new keyframe is created for each property that you change.
Repeat from step 5 for each property that you want to animate.
If you want to create another animation for the object, select Create New Clip from the animation clip menu.