how to switch camera's

hi i have a a camera looking at a rocket ship(im making a out of space game)and a rocket lands in a land zone and i want the camera to move to another camera after a few secs,then another few secs then to the player camera how do i do that

depends what you're trying to do. If you want to switch cameras as the spaceship is landing, you'll need to detect when the spaceship is close enough to the landing zone either with a trigger object or with raycasting. But switching cameras is simple.

var camera1 : Camera;
var camera2 : Camera;

function Start()
{
camera1.enabled = true;
camera2.enabled = false;
}

function OnTriggerEnter()
{
camera1.enabled = false;
camera2.enabled - true;
}

if you want to add a delay you can add:

yield WaitForSeconds(delay)

then switch back to to camera1.

Hi, you can use a camera manager script, just add a script and name it "Camera Manager", then use a game object array variable: `var cameras : GameObject[];` with this you can change between any camera you want using the `cameras_.active = false; //or true`, even you can move the cameras using the `cameras*.transform.position` to locate any camera where ever you want.

*_

If you want a smooth transition between camera views (rather than just jumping between them), you'll need to Lerp or Slerp the camera's transform (position and rotation, and hey, FOV while you're at it). Set up the Lerp using the 'start' and 'end' cameras, in an Update() function.