Time for action – I like to move it move it
In the case of our bouncer
GameObject, we'll set up three keyframes: one for the up position, one for the down position, and a third to bring it back to the top of the bounce.
Click on the red X cone in the Scene view's axis gizmo to view the level from the side.
In the Animation view, enter an initial value of
-0.5
for thePosition.y
value ofbouncer
. A little diamond-shaped keyframe symbol appears on frame 1 at the top of the Animation view. This means that Unity is remembering the position, rotation, or scale of the GameObject on that frame. The colored diamond next to any given value means that Unity is storing a value on this frame for that specific parameter.Click-and-drag the vertical red line (not the keyframe diamond) to frame 10, or enter the number
10
into the frame field at the top of the Animation window (next to the playback controls). It's very important not to mistake frame 10 with the 10:00 second mark!On frame 10, punch in a
Position...