To create camera animation with the Animation View, follow these steps:
- Select the camera you want to animate (you can also add a new camera to the scene).
- Open the Animation View (go to Window | Animation).
- Create a new Animation Clip and call it CameraAnimation.
- Make sure the record button is pressed.
- Move and rotate the camera to create the desired animation. If the camera is not parented to any game object, the animation will be done in world space.
- If you want to use this animation as a cutscene, create a prefab from the camera.
- Play the game to see the effect.