What is the Follow Feature in Cinemachine Virtual Cameras?

Objective: To discuss the Follow field feature that is available under the CinemachineVirtualCamera Component in Unity.

Compared to the Look At feature (which simply rotates the camera towards a target and works with the Aim feature settings), the Follow feature refers to the target game object that the Unity Camera will move with. This Follow feature works in conjunction with the Body settings on the CinemachineVirtualCamera component, using this target to update Unity’s camera position.

E.g. Below I have introduced a simple capsule and a new virtual camera into the scene and I have dragged this capsule game object into the Follow field below as shown. Further to this, I have placed the virtual camera in a position in front of the capsule (0, 10, 15) on the X, Y and Z co-ordinates.

CinemachineVirtualCamera Component Settings

And it looks something like this:

Virtual Camera Placed in Front of Capsule

Notice now that when I move the capsule in the scene that the virtual camera is going to stay in the offset position in front of the capsule, essentially following the target around:

Virtual Camera following the Follow target

If you were to leave the Follow field empty, the Unity camera would end up using the virtual cameras position (transform). You might choose to do this if you were looking to animate the virtual camera through Timeline.




Passionate Unity Game Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

There is one more company PlayStation should be thinking of buying

WinZO Announced Game Developer Fund Worth $20M

Remember The Elder Scrolls: Blades?

A screenshot of a forest region in Elder Scrolls: Blades.

Baby’s First Homebrew— or, the process of writing/running my first D&D campaign

The Silent Age Review: A Sparse, Stylish Throwback Adventure

Day 3: The Enemy

How to switch to 64bit in fortnite

3 Ways Animal Crossing Has Helped During This Quarantine

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
Chris Hilton

Chris Hilton

Passionate Unity Game Developer

More from Medium

The Escape Button Is A Feature!

3rd Person Follow Virtual Camera Explained in Unity’s Cinemachine

Daily Progress: Main Menu Functionality!

Virtual Cameras w/ Cinemachine in Unity 2020 — Part 5