Documentation

Unity Spark

Open Unity Spark

Unity Spark

Edit animation clips

Create an animation clip that changes an object's properties over time, then edit its keyframes in the Dopesheet and Curves views of the Unity Spark Animation Clip window.
Read time 2 minutesLast updated 3 hours ago

Create an animation clip that changes an object's properties over time, for example, to move a door, spin a coin, or fade a light. Each property that the clip animates is called a binding, and each binding stores its values at points in time called keyframes.

Create an animation clip

To create the clip:
  1. In the Animation Clip window, select New Animation Clip (+).
  2. In the Clip section, enter a Name, and set the Duration (s) and Wrap Mode.
  3. Next to Bindings, select Add binding (+).
  4. Set what the binding animates, then select Add Binding. For a description of each setting, refer to Add binding form.
  5. In the binding's row for each value, such as
    x
    , select Add keyframe (+).
  6. In the new keyframe, set the time (t) in seconds, and the value (v).
  7. Repeat the previous two steps for each keyframe you want.

Edit keyframes on the timeline

After a clip has a binding, the Timeline section shows its keyframes. To edit them in the Dopesheet view:
  1. In the Timeline section, select Dopesheet.
  2. To change when a keyframe happens, drag it along the timeline.
  3. To move several keyframes together, drag a box around them, then drag one of them.
  4. To remove keyframes, select them, then press Delete or Backspace.
To move through the clip, drag the playhead.

Edit keyframes as curves

To change how a value changes between keyframes, edit it in the Curves view:
  1. In the Timeline section, select Curves.
  2. If the clip has more than one binding, select the binding in the Binding list.
  3. To change a keyframe's time and value, drag its point.
  4. To change the shape of the curve around a keyframe, select its point, then drag one of its tangent handles.
  5. To add a keyframe, click the curve where you want it.
  6. To change how the curve moves between keyframes, right-click (macOS: Ctrl+click) a point, then select an option, such as Linear or Constant (step).
  7. To remove a keyframe, select its point, then press Delete or Backspace.
To zoom the time axis, use the mouse wheel. To zoom the value axis, hold Shift and use the mouse wheel. To move the view, drag an empty area. To fit the whole clip in the view, select Fit.
For a description of each option, refer to Curves view.

Additional resources