Image generated with AI
Cinemachine in Unity: Virtual Cameras Step by Step
Diego Cortés
Author
You can keyframe a Unity camera shot by shot, or you can describe it: follow this character, keep them a third of the screen off center, don't lose them behind a column. Cinemachine does the second.
What Cinemachine Solves (and Why It Isn't "Just Another Camera")
Cinemachine is a suite of modules that drives the Unity camera from rules instead of keyframes. If you come from Blender or Maya, that is the real shift: in a DCC you animate a camera; in Unity you describe how it should behave and the system recalculates every frame.
At the center sits the Brain, a component that lives on the Unity camera itself: it watches every active virtual camera, decides which one is live, and handles the transition between them, cut or blend. Virtual cameras are empty GameObjects carrying a behaviour component, and they render nothing on their own. Since Unity 6.6, the package is core and ships with the Editor.
The payoff shows up the moment something moves: if the animation changes or the ground rises, the camera recalculates itself. In a DCC that means going back to the Graph Editor; here it is a damping value. For a contrast, cinematic camera animation in Blender works with keyframes and Follow Path, an equally valid approach for a locked shot.
The Minimum Setup in Five Steps
- Create the virtual camera: GameObject > Cinemachine > Cinemachine Camera. If no Brain exists, Unity adds one to the main camera.
- Set the targets: Tracking Target is what it follows and Look At Target is what it aims at. They can differ: follow the body while looking at the head.
- Tune the lens: Field of View is in vertical degrees, and 19.6 degrees equals a 50 mm on Super 35. Z-axis tilt (Dutch) is also available.
- Order: the virtual camera with the highest priority wins, and channels act as layers for split-screen.
- Guides: Game View Guides in interactive mode are dragged with the mouse in the Game view.
Position: Follow, Position Composer and Spline Dolly
Follow keeps a fixed relation to the target; Hard Lock to Target pins it to the same position, and the Third Person and Orbital variants are built for a playable character.
The Position Composer is the fine framing tool: it travels along Z to the desired distance, then slides on its X-Y plane until the target lands on the chosen screen point. It only moves, never rotates. What matters is Screen Position (0 is center; -0.5 and 0.5 are the edges), Dead Zone Size, Hard Limits, Camera Distance and per-axis damping. Lookahead pushes the position forward based on target velocity, which is what makes a chase feel anticipated rather than reactive.
The Spline Dolly constrains the camera to a spline, with Position Units by knot, distance or normalized value and a Spline Offset on X perpendicular, Y up and Z along the path. Rotation can follow the path or keep aiming at the target, and Automatic Dolly seeks the closest point to the character. For an establishing shot travelling across a modular set built from trim sheets, this is the component.
Rotation and Framing: Rotation Composer and Hard Look At
The Rotation Composer rotates the camera toward the Look At and never moves it, with the same zone, damping and lookahead controls. Once you understand the position composer, this one reads the same way.
The viewport guides are the real control panel: the light zone is the dead zone, where the target moves without the camera reacting; the blue one is the soft zone, where the camera follows; the red one is the no-pass area; and the yellow box marks the target.
Damping is the operator's weight: low values give a nervous camera, high values a heavy one that lets the character drift through the soft zone. In a dialogue, aim at a head bone rather than the object's center.
Cutting Between Shots: Priority, Blends and Blend Hints
A cut happens when another virtual camera reaches a priority equal to or higher than the live one. If they are tied and badly ordered, the cut never fires.
The Brain defines the Default Blend: Cut, Ease In Out, Ease In, Ease Out, Hard In, Hard Out, Linear or Custom, the last with a hand-drawn curve. For asymmetry there is Custom Blends, an asset storing blends per camera pair: four seconds from A to B and one from B to A, exactly what a reaction shot needs.
Blend Hints correct the blend: spherical or cylindrical position, screen-space aim, inherit the previous position, or freeze when blending out. Show Debug Text and Show Camera Frustum tell you which camera is live. Smart Update is the recommended Update Method, and Blend Update Method works best in Late Update.
Sequencing Several Shots Without Code
The Sequencer Camera runs a list of instructions across its child cameras: activate the next one, hold it, cut or blend, and loop. The documentation suggests it over Timeline for simple automatic sequences.
The Clear Shot picks the best-quality shot among its children by obstruction and distance; a tie goes to priority, and a Deoccluder on the parent covers all of them. The Target Group turns several objects into one target with Weight and Radius per element, and is created with GameObject > Cinemachine > Target Group Camera: the natural answer for a two-character dialogue.
The alternative is Timeline: each cinematic is an asset plus an instance, with tracks and sub-timelines, and it overrides the Brain. Maya's Sequencer for multi-shot sequences solves the same problem in a DCC; and if you come from animation, the blocking to polish stage applies just the same: block with hard cuts, polish afterwards.
Keeping the Camera Unobstructed: Deoccluder
The Deoccluder post-processes the final position to preserve the line of sight to the Look At: it pulls the camera out of obstacles and places it in front of whatever blocks the view. It needs colliders because it runs a Physics Raycaster, so limit Collide Against to the relevant layers and set a Minimum Distance From Target. Smoothing Time keeps the adjustment from snapping when a character walks behind a column.
Believable Shake: Perlin Noise
Noise is an asset, not a formula written by hand: create it with Create > Cinemachine > NoiseSettings and apply it with Basic Multi Channel Perlin, after the framing. Each axis has its own layer with Frequency in hertz and Amplitude: 0.1 to 0.5 for low, 0.8 to 1.5 for mid and 3 to 4 for high.
The most convincing shake is rotational, not positional. Amplitude grows with wide lenses and shrinks with telephoto, and a frequency above your fps produces stepping instead of vibration. Amplitude Gain and Frequency Gain can be animated to raise tension on an impact and drop it to zero afterwards.
From Viewport to File: Recording the Cinematic
Delivering the sequence requires Recorder, which captures only in the Editor and in Play mode. Its outputs cover MP4 H.264, VP8 WebM or ProRes QuickTime, GIF, image sequences, multi-part EXR AOVs for compositing and WAV audio. Accumulation stacks sub-frames per recorded frame, which gives motion blur or path-tracing convergence.
If the destination is compositing, the layer logic of a VFX shot and compositing in After Effects are the next step; to compare formats, rendering an animation in Blender covers the same ground. The Storyboard extension, by contrast, overlays a still image for animatics and previz, much like a presentation turntable orders a model's rotation.
Common Mistakes and Their Real Cause
Jitter with a moving target usually comes from too much Lookahead Time over a noisy animation. Cuts that never happen are tied priorities, and hard cuts where you expected a blend mean no Default Blend is set. A camera passing through walls points to obstacles without colliders or layers left out of Collide Against, and the "video game camera" feel is almost always a very wide FOV with no dead zone.
If the set lives in another engine, Unreal Engine 5 for 3D artists and environment art in Unreal Engine 5 explain how the environment where the camera later moves gets built.
Conclusion
Cinemachine does not animate the camera: it describes how the camera should behave. That difference separates a video game frame from a film frame, and once it clicks, going back to moving the camera by hand frame by frame feels like a downgrade.
The platform has a curated tutorial to start with, Unity Fundamentals: cameras and first steps in Cinemachine, plus two shorts made in the engine, Adam and Time Ghost. The rest lives in the Unity category.