To implement switchable cameras, follow these steps:
- Create a new Camera in the Scene named Camera-1 (Create | Camera). Set its position to (0,0,0). Set the Tag for this Camera to be MainCamera.
- Duplicate Camera-1, naming the copy Camera-2. Set its Position to (0, 0, -15), and its Rotation to (20, 0, 0).
- Disable the Camera and AudioListener components for both Camera-1 and Camera-2.
- Create an empty GameObject named switchboard (Create | Create Empty).
- Create a new C# script-class named CameraSwitch containing the following, and add an object-instance as a component to the switchboard GameObject:
using UnityEngine; public class CameraSwitch : MonoBehaviour { public Camera[] cameras = new Camera[3]; public bool changeAudioListener ...