Animating cameras in Unity

Hernando Nieto Jaramillo
2 min readAug 7, 2021

Now it’s time to move the cameras

Creating a new animation

  • Select the camera gameobject and in the Animation window, create a new animation

Mode 1

  • Next, with the time slider at the beginning, press the red button to record an animation. Change the rotation value a bit to record it in the frame.
  • Move the time slider to a time later (maybe 3:00) and set the desired rotation
  • In time 6:00, change the rotation value as if it was starting to move
  • Press the red button to exit recording

Mode 2:

  • Record the first part (movement from left to right)
  • Set the sample rate to 10 fps

If you can’t see the sample rate:

  • Open the CameraController Animator
  • Select the animation

Speed = 0: animation paused
Speed = -1: play animation in reverse

  • Copy/Paste the Camera_Anim and set its speed value to -1
  • Make transitions for both animations

--

--