Understanding the LookAt Field in Cinemachine Virtual Cameras

Objective: To understand the LookAt field in Cinemachine Virtual Cameras in Unity.

What is Look At in the CinemachineVirtualCamera Component

LookAt Field within CinemachineVirtualCamera Component

The easiest way to define the Look At field is what game object the virtual camera is going to be aiming at. The Aim properties which were discussed in a previous article will use this target to rotate the Unity camera. If there is no target (empty field), then the Unity camera will use the orientation of the virtual camera.

Below I have set the target to be “Darren”, and I have completely removed the dead zones on the camera as seen in the Game window (dead zone has been replaced with a yellow dot in the centre). I have now moved the camera so it is not facing Darren, when I now hit Play, the Unity camera will rotate so that the centre of Darren is the result of the Aim properties:

Scene and Game windows showing the Unity camera Look At Darren
Virtual Camera Aim Properties

As mentioned, if I was to leave the Look At field blank, the Unity Cameras orientation would be the same as the virtual cameras and we wouldn’t expect any movement as their is no Look At target to Aim at:

Virtual Camera doesn’t move as there is no Look At target to aim to
No Look At Target

As you can see the animation plays out but the cameras don’t aim to the Look At object.




Passionate Unity Game Developer

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

Recommended from Medium

Real Money Free Signup Bonus

Kingdom Karnage whitelist campaign is open now

NA LCS Summer Split Preview

River City Ransom EX Review: I’m reviewing a GBA game!

Rage 2 is Totally Awesome

Day of the Tentacle Remastered Review

Amazon Luna Game Streaming Service Impressions

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

Importing Character Models and Animations from Mixamo into Unity

Adding a new ability to our prototype — The Triple Shot

Unity : Cinemachine and Timeline (Part IV)

IK Weapon System in Unity