Animation Clip window reference
Explore the controls in the Unity Spark Animation Clip window to edit a clip's properties, bindings, keyframes, curves, events, and sprite frames.
Read time 6 minutesLast updated 3 hours ago
The Animation Clip window edits an animation clip asset: its name, length, and wrap mode, the properties it animates, their keyframes, and its events. For a 2D clip, the window shows the clip's sprite frames instead.
To create a clip and edit its keyframes, refer to Edit animation clips. For more information about animation clips, refer to Introduction to animation clips.
The Animation Clip window doesn't edit character animation clips, such as clips imported with a character model. When you open one, the window shows a message instead.
Open the Animation Clip window
To add the Animation Clip window to your workspace:
- In any window group, select Add window (+).
- Select Animation Clip, or search for it in the Search windows field.
You can also double-click an animation clip in the Project window, or a clip in the Sequencer window, to open it in the Animation Clip window. Only one Animation Clip window can be open at a time.
Clip selection
The top of the Animation Clip window contains the following controls.
Control | Description |
|---|---|
| Clip menu | Selects the animation clip to edit. The menu lists the animation clips in your project that the window can edit. When no clip is open, the menu shows Select an Animation Clip…. |
| New Animation Clip (+) | Creates an animation clip and opens it in the window. |
Clip properties
The Clip section contains the following properties for a clip that animates properties.
Property | Description |
|---|---|
| Name | Sets the clip's name. |
| Duration (s) | Sets the clip's length, in seconds. |
| Frame Rate | Sets the number of frames per second. Keyframes that you move in the dopesheet snap to frames at this rate. |
| Wrap Mode | Sets what the clip does when it reaches its end. Select Once to play the clip one time, or Loop to repeat it. |
Timeline
The Timeline section appears when the clip has at least one binding. It contains the following controls.
Control | Description |
|---|---|
| Dopesheet | Shows the keyframes of every binding on one time axis, with a row for each channel, such as |
| Curves | Shows the channels of one binding as curves. For more information, refer to Curves view. |
| Fit | Resets the zoom of the active view to fit the clip. |
When you record an animation, the window shows the clip you're recording. The playhead then also sets the time for new keyframes, and previews the clip on the object in the Scene view.
Curves view
The Curves view contains the following controls.
Control | Description |
|---|---|
| Binding | Selects the binding whose channels the view shows. Available when the clip has more than one binding. |
| Keyframe point | Shows a keyframe on the curve. A selected point shows its in and out tangent handles, which control how the curve enters and leaves the point. |
| Curve | Shows a channel as a curve. Each channel has its own color. |
Right-click (macOS: Ctrl+click) a keyframe point to open a menu with the following items.
Menu item | Description |
|---|---|
| Auto (smooth) | Sets the keyframe's tangents automatically for a smooth curve. |
| Free (manual) | Lets you set the keyframe's tangents with the tangent handles. |
| Linear | Moves in a straight line to the next keyframe. |
| Constant (step) | Holds the keyframe's value until the next keyframe. |
| Flat | Sets both of the keyframe's tangents to flat. |
| Smooth · unify in=out (C1) | Sets the in and out tangents to the same slope. |
| Delete key | Removes the keyframe. |
Bindings
A binding is a property that the clip animates. The Bindings section lists the clip's bindings and contains the following controls.
Control | Description |
|---|---|
| Add binding (+) | Opens a form to add a binding. For more information, refer to Add binding form. |
| Expand / Collapse | Shows or hides the binding's channels and keyframes. |
| Remove binding | Removes the binding and its keyframes from the clip. |
| Add keyframe (+) | Adds a keyframe to the channel, 1 s after its last keyframe, or at the start if the channel has no keyframes. |
| t | Sets the keyframe's time, in seconds. |
| v | Sets the keyframe's value. |
| Interpolation | Sets how the value changes on the way to the next keyframe: Constant, Linear, Cubic, or Auto. |
| Remove keyframe | Removes the keyframe. |
Add binding form
The form that Add binding (+) opens contains the following properties.
Property | Description |
|---|---|
| Kind | Sets what the binding animates: |
| Path | Sets the object that the binding animates. Leave it empty for the object the clip plays on, or enter the path to a child object, such as |
| Type Id | Sets the component type, such as |
| Property / Blendshape | Sets the property to animate, or the blend shape name when Kind is Blend Shape. |
| Value Type | Sets the type of value the property holds: Bool, Float, Vector2, Vector3, Color, or Quaternion. The value type sets the binding's channels. |
| Add Binding | Adds the binding to the clip. |
Events
The Events section lists the clip's events, with each event's time and function name. You can add and remove events in this window, but you can't change an event's time or function name. It contains the following controls.
Control | Description |
|---|---|
| Add event (+) | Adds an event named |
| Remove event | Removes the event. |
2D clip properties
When you open a 2D clip, such as a sprite animation, the window shows the following controls instead of the timeline, bindings, and events.
Control | Description |
|---|---|
| Name | Sets the clip's name. |
| Wrap Mode | Sets what the clip does when it reaches its end: Once or Loop. |
| Length (s) | Sets the clip's length, in seconds. |
| Frame list | Lists the sprite frames in order. To add frames, drag sprite slices from the Project window onto the list. To reorder a frame, drag its thumbnail. |
| Frame duration | Sets how long the frame shows, in seconds. When the clip has more than one sprite track, the last frame shows Until clip end. |
| Move Up / Move Down | Moves the frame one place earlier or later. |
| Remove frame | Removes the frame. |
| Frame Rate | Sets the number of frames per second for Apply to all frames. |
| Apply to all frames | Sets every frame's duration to match the Frame Rate. |
| Play preview / Stop preview | Plays the frames in a loop in the window, or stops them. |
| Add frames… / Close picker | Opens or closes a picker to add frames from a sliced texture. |