Recording an Animation Track
As you would expect, in addition to audio and activation tracks, Timelines can include animation tracks. Unity's animation features have evolved over the years and Timeline greatly simplifies basic animation capabilities within Unity. You can create and edit animations directly within Timeline without having to create separate Animation Clips and Animator Controllers. These we will get to later in this chapter. For now, we will start simple, animating just a few Transform parameters on the tree and the nest.
A growing tree
We want to add an animation of the tree growing from small (scale 0.1
) to full size, from 0
to 30
seconds in the Timeline. We do this by adding an Animation Track for the Tree, and then recording the parameter values at each keyframe time:
- Ensure
BlackbirdDirector
is selected inHierarchy
and theTimeline Editor
window is open - Drag the
Tree
fromHierarchy
into theTimeline
window - Select
Animation Track
as the type of Track we are adding
Now, we can...