Time for action – animate the bouncer
We'll use the Unity Animation tool to create an animation clip for our bouncer
GameObject.
In the Hierarchy panel, click to select the
bouncer
GameObject.In the menu, navigate to Window | Animation to bring up the Animation window. If you so choose, you can dock it within the interface like the Hierarchy and Project panels. I prefer not to because I like having a lot of space for this window. I resize the window so that it covers most of the right half of my screen. You can drag the middle line that splits the Animation window (dividing the dark and light parts of the window) to give more or less real estate to the key view (dark side).
Press the round reddish-pink Record button near the top-left of the window.
Unity asks you to name your new Animation clip. Save it as
animBounce
.
What just happened – red and raging
When you save your Animation clip, two things happen: the clip becomes a tangible, reusable asset in your Project panel, and the Record, Play...