Documentation

Unity Spark

Open Unity Spark

Unity Spark

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:
  1. In any window group, select Add window (+).
  2. 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 menuSelects 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

NameSets the clip's name.
Duration (s)Sets the clip's length, in seconds.
Frame RateSets the number of frames per second. Keyframes that you move in the dopesheet snap to frames at this rate.
Wrap ModeSets 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

DopesheetShows the keyframes of every binding on one time axis, with a row for each channel, such as
x
,
y
, and
z
, and a playhead that marks the current time.
CurvesShows the channels of one binding as curves. For more information, refer to Curves view.
FitResets 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

BindingSelects the binding whose channels the view shows. Available when the clip has more than one binding.
Keyframe pointShows 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.
CurveShows 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.
LinearMoves in a straight line to the next keyframe.
Constant (step)Holds the keyframe's value until the next keyframe.
FlatSets both of the keyframe's tangents to flat.
Smooth · unify in=out (C1)Sets the in and out tangents to the same slope.
Delete keyRemoves 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 / CollapseShows or hides the binding's channels and keyframes.
Remove bindingRemoves 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.
tSets the keyframe's time, in seconds.
vSets the keyframe's value.
InterpolationSets how the value changes on the way to the next keyframe: Constant, Linear, Cubic, or Auto.
Remove keyframeRemoves the keyframe.

Add binding form

The form that Add binding (+) opens contains the following properties.

Property

Description

KindSets what the binding animates:
  • Component Property: A component or material property, such as a light's
    intensity
    or a material's
    _Color
    .
  • Transform: The object's position, rotation, or scale, such as
    localPosition
    ,
    localEulerAngles
    , or
    localScale
    .
  • Blend Shape: A blend shape of a mesh.
PathSets 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
Child/Grandchild
.
Type IdSets the component type, such as
Light
or
MeshRenderer
. Available when Kind is Component Property or Transform. For Transform, Unity Spark always uses
Transform
.
Property / BlendshapeSets the property to animate, or the blend shape name when Kind is Blend Shape.
Value TypeSets the type of value the property holds: Bool, Float, Vector2, Vector3, Color, or Quaternion. The value type sets the binding's channels.
Add BindingAdds 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
OnEvent
at the start of the clip.
Remove eventRemoves 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

NameSets the clip's name.
Wrap ModeSets what the clip does when it reaches its end: Once or Loop.
Length (s)Sets the clip's length, in seconds.
Frame listLists 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 durationSets 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 DownMoves the frame one place earlier or later.
Remove frameRemoves the frame.
Frame RateSets the number of frames per second for Apply to all frames.
Apply to all framesSets every frame's duration to match the Frame Rate.
Play preview / Stop previewPlays the frames in a loop in the window, or stops them.
Add frames… / Close pickerOpens or closes a picker to add frames from a sliced texture.

Additional resources