How to switch between Cinemachine cameras in Unity

Jared Amlin
7 min readMar 3, 2022

--

One of the best features that comes with cinemachine is the ability to switch between cameras at your discretion. There are a few ways to do this, so let’s cover some examples in this article.

There are five virtual cameras that have been brought into the hierarchy from the cinemachine package.

In a previous article, I covered how using the Solo button is an effective way to show a specific camera in the game view. This is most useful when you are working on that particular camera view.

Each virtual camera is placed roughly around the perimeter of the player.
Here is Camera 1 at the highest Priority level.

Camera 2 with the Solo button pressed.

Camera 3 on Solo.

Camera 4 Solo.

and Camera 5 Solo.

Priority

Setting the Priority level is a great way to determine which camera will be acting as the main camera. In this example, I have made vcam1 a Priority value of 11, while making vcams2–5 all a Priority value of 10. The camera with the highest Priority value will be the featured camera showing in the Game view. In this case, vcam1 would be showing in the game view, being it currently has the highest priority…

--

--

Jared Amlin

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.

Recommended from Medium

Lists

See more recommendations