objective: demonstrate how to build a custom 3rd person camera in Unity.

Whenever I press and hold the right mouse button the screen changes from a 3rd person view to an orbital camera view. I am switching cameras by using code.

First make two cameras, one 3rd person and one orbital. Then make a C# script and place it on the capsule.

--

--

Objective: Demonstrate how to switch between cameras in Cinemachine.

There are two ways to switch between cameras. You could turn off the cameras not wanted, or you can set the camera you want to be active to the highest priority. I have set camera 1 to the highest priority so it is the one showing in the picture above.

--

--

Objective: demonstrate the features of Aim in Cinemachine

Here I have an animated cube that is followed by the virtual camera. To get the camera to follow the cube, drag the cube to the look at feature in the inspector. Now to describe the features of the aim option.

Tracked object offset just offsets the position of the camera.

Lookahead Time adjusts the position of the camera to look ahead of the objects direction.

--

--