Cinemachine: Custom Blends

Intro

In this article, we will cover how to create Custom Blends using the Cinemachine Brain.

What is the Cinemachine Brain? According to Unity’s documentation, “The Cinemachine Brain is a component in the Unity camera itself. Cinemachine Brain monitors all active Virtual Cameras in the Scene. It chooses the next Virtual Camera to control the Unity camera. It also controls the cut or blend from the current Virtual Camera to the next.” That last part, the cuts and blends is what we are going to focus on.

Custom Blends

Currently, the Cinemachine Brain has all of the cameras using the Ease In Out blend or transition with a 2 second duration when moving from one camera to another.

You can see below how the transition is always Ease In Out between all of the cameras.

How can we change this? You can easily change the default blend, but how can we get different blends between different cameras instead of all of the cameras having the same blend.

The solution is to created a custom blend.

We will save this new Cinemachine Blend Asset to your project folders.

Now, you have the option to decide how to Blend between two different Virtual cameras.

You can see below how the transitions are now different when switching from one camera to another.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store