Keyframing the replicator's parameters
As we've seen in earlier chapters, we can do some pretty amazing things combining keyframes and behaviors. Let's see how we can combine both keyframes and behaviors when working with replicators.
Getting ready
From the exercise files of this chapter, double-click on the 08_04
project. Play back the project. The animation consists of a series of books that animate from offscreen to onscreen. If you select the replicator and go to the Replicator tab of the Inspector, you can see that they are being replicated along the shape of a line; however, because the line is so small, the books are overlapping. If you click on the Behaviors tab, you'll see a Sequence Replicator added. Three parameters have been added: Rotation, Color, and Position. Over the span of 2 seconds, the books go from the parameter values set in the Sequence Replicator to values established in the Replicator tab.
How to do it...
We're going to keyframe the line's length in the Inspector so...