Skip to content

Instantly share code, notes, and snippets.

@jakevsrobots
Created April 10, 2013 19:09
Show Gist options
  • Save jakevsrobots/5357528 to your computer and use it in GitHub Desktop.
Save jakevsrobots/5357528 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class CameraManager : MonoBehaviour {
public Camera cameraOne;
public Camera cameraTwo;
// etc.
public void Start() {
// Switch to camera one
cameraOne.enabled = true;
cameraTwo.enabled = false;
// Or switch to camera two
cameraOne.enabled = false;
cameraTwo.enabled = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment