Skip to content

Camera Script

Aidan Mathieu edited this page Dec 4, 2024 · 2 revisions

Within the main branch scene there is an object called Cinematic Camera. Within that object are two objects, camera and camera waypoints.

The camera object contains a camera movement script. This is what you will be using to dictate how the camera moves. This script contains variables speed and rotation speed, which dictate how fast the camera moves to waypoints and how fast the camera rotates to match the waypoints' rotation.

Now for determining how the camera will move you will need to put empty objects into the world. These objects will act as waypoints for the camera to move to. The camera will start with the same position and rotation as the object placed within the startingPoint object variable. It will then smoothly glide in order between each waypoint object placed in the waypoints list to match the position and rotation of the waypoint.

The camera waypoints object is just to store any waypoints you create. You must place them within the waypoints list in the camera movement script for them to be active.

Make sure that you place the waypoints in the world with the position and rotation that you want the camera to match.

As for taking a video, at this moment it is simply displayed to your scene view within the editor when it is active. I have been using screen recording software to record and crop the video from there. However, there is most likely a way to have the camera simply record and save a video if that is preferred, however it is not currently a feature of this script.

Clone this wiki locally