Animating security cameras in Unity
The player can now distract the guards and continue going to the vault, but he must be careful, the security cameras are waiting for him.
Animating the camera
- Select the camera gameobject and in the Animation window, create a new animation

One way to do it is:
- 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

Another way is:
- 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
