Unity3D: Creating Security Cameras

Creating logic for security cameras is very simple! Let’s have a look.

Objective

We want the camera to rotate back and forth at a 45-degree angle. We also want the camera to detect the player.

Security Camera Game Object

We want to select the game object with the camera mesh.