Controlling a camera to make a cutscene in Unity

Hi all,

I was watching the following youtube video and I wondered how you animate and control a camera to make a cut scene in a game as either a scene file then it loads the next level or the cutscene viewed first then the player takes control and continues in FPS all within 1 scene?

the video is

I would really appreciate if someone could point me to a tutorial on this subject…that would really help my ongoing project.

Many Thanks

Pipes

Something like this should work you will need to make
2 scripts 1 that triggers the camera of and on another that turns of your second camera on start of the game.

var camera1 : GameObject;
var camera2 : GameObject;


function OnTriggerEnter (other : Collider) {



   camera1.gameObject.active = false;
camera2.gameObject.active = true;
}

the other camera that is static has to be inactive otherwise Unity will throw up a error

so on the second camera drop this script on it.

var camera1 : GameObject;

function Start () {

camera2.gameObject.active = false;

}

Many Thanks

How would I keyframe the cameras path to take?

I have a fairly similar task to solve. I want my camera to take a predefined path without the possibility for the user to move on it’s own.

What I did was probably not the most elegant solution, but it should work.
I recorded the camera path manually. I set up a script that records the Transform of the camera for each frame and I write this information to a text file.
So I basically walk the path on my own which needs to be recorded. To replay this predefined path, I just read the values from the text file again and set my camera to the recorded positions (and rotations if needed).

Cheers