Documentation

Unity Spark

Open Unity Spark

Unity Spark

Introduction to animation clips

Understand what animation clips are, where they come from in Unity Spark, and which windows you can use to work with them.
Read time 5 minutesLast updated 3 hours ago

Animation clips make your characters and sprites move. For example, you can create a walk cycle, a jump, or an idle animation.

Animation terms

The following table defines some common Unity Spark animation terms. For instructions on how to use them, refer to Add and create animation clips.

Term

Meaning

Animation clipOne piece of movement, such as a walk, a jump, or waving, that an object or character can play. You attach the clip to a character or object, and it plays when a script or state triggers it.
KeyframeSave an object or character's properties at specific moments. For example, you can add a keyframe to record the angle of a door when it's open, and another keyframe when it's closed. Unity Spark fills in the movement between keyframes, so the door closes smoothly.
CurveA line that shows how a value changes between keyframes, for example, speeding up or slowing down towards the end.
Skeleton, or rigA set of connected bones inside a character model. Moving the bones moves the character's body.
HumanoidA character whose skeleton has a human shape, with a head, arms, and legs. You can use humanoid animations on other humanoid characters.
Sprite sheetOne image that holds every frame of a 2D animation, side by side.
Animation controllerThe asset that decides which clip a character plays, and when it changes to another clip.
StateOne clip that a character can be in, such as idle, walk, or jump.
TransitionThe change from one state to another, such as from idle to walk.
ParameterA value, such as speed, that your scripts set and that transitions check to decide when to change state. For example, a character's speed can trigger a transition from idle to walk.
Blend treeA state that mixes several clips based on a parameter, such as blending walk into run as speed rises.
Avatar maskAn asset that limits a clip to part of a character, such as the upper body.
BakingThe process of preparing humanoid clips before the game needs them, so characters can play them without delay or performance issues.
Sequence and trackAn animation of objects in your scene over time. Each animated object has its own track.

Animation clip sources

In Unity Spark, animation clips can come from the following sources.

Source

Description

Imported modelsA character model exported with its skeleton and animations in the same FBX or GLB file keeps its animation clips when you import it.
The Unity Spark libraryThe Asset Browser window has an Animation asset type, and characters in it list the animations they come with.
The Generate windowYou can use the Generate window to create character animations from a description or a video, move an existing animation onto another character, or create a skeleton and animations for a character model.
Sprite animationsFor 2D games, sprite animations animate sprites, for example, from a sprite sheet.
For instructions on each source, refer to Add and create animation clips.

Choose an animation window

Unity Spark has a window for each kind of animation work. They're all in the Animation group when you add a window. Use the following table to choose the window for what you want to animate.

Window

Use it to

Example

Animation ClipEdit a single animation clip: its length, the properties it animates, their keyframes and curves, and its events. For a 2D clip, edit its sprite frames.A sprite's walk cycle, or a clip that changes an object's properties over time.
SequencerAnimate objects in your scene over time, with a track for each object. You record a track by changing the object's properties in Animate mode.A door that opens, or a camera that moves.
Animation ControllerDecide which animation a character plays, and when it changes to another, with states, transitions, and parameters.A character that changes between idle, walk, and jump animations.
Avatar MaskLimit an animation to part of a character. An Animation Controller layer uses the mask.An animation that plays only on one area of the body, such as the upper body or one arm.
Animation BakingBake the animation data that humanoid characters play.Add new humanoid clips to the cache, or bake all of them again.
The Animation Clip window doesn't edit character animation clips, such as clips imported with a character model. To control how a character uses its clips, use the Animation Controller window.

Enter and leave Animate mode

A sequence animates objects in your scene over time, with a track for each object it animates. You record a track by changing the object's properties while you animate, and the Sequencer window shows the keyframes of every track on one timeline.
You can edit a sequence only in Animate mode. In Animate mode, scrubbing (dragging along the timeline to preview) and recording don't change your actual scene. When you leave Animate mode, Unity Spark restores your scene.
When Animate mode is off, the Sequencer window shows a message and an Animate button over the timeline. To enter Animate mode, select Animate. If the project has no sequence yet, Unity Spark creates one.
To leave Animate mode, do one of the following:
  • Press Esc.
  • Select Animating in the Scene view toolbar.
  • Close the Sequencer window.

Additional resources