Skip to content
Development
Skill

/cinemachine

Cinemachine camera system — virtual cameras, FreeLook, blending, noise profiles, state-driven cameras, confiner, follow/aim behaviors.

From plugin
everything-claude-unity
2442 skills20 agents27 commands
Install
$ npx -y skills add XeldarAlz/everything-claude-unity --skill cinemachine --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cinemachine

Context preview

The summary Claude sees to decide when to auto-load this skill.

Cinemachine camera system — virtual cameras, FreeLook, blending, noise profiles, state-driven cameras, confiner, follow/aim behaviors.

SKILL.md

cinemachine.SKILL.md
name: cinemachine
description: "Cinemachine camera system — virtual cameras, FreeLook, blending, noise profiles, state-driven cameras, confiner, follow/aim behaviors."
globs: ["**/*Cinemachine*", "**/*Camera*.cs", "**/*Cam*.cs"]

Cinemachine

Setup

1. Add `CinemachineBrain` component to Main Camera 2. Create Virtual Cameras — Brain auto-blends to highest priority

Virtual Camera Components

**Body (follow):**

  • `Transposer` — 3D offset follow (configurable damping)
  • `Framing Transposer` — 2D/screen-space follow (dead zone, soft zone)
  • `Orbital Transposer` — orbit around target (user input rotates)
  • `Tracked Dolly` — follow a path

**Aim (look at):**

  • `Composer` — keep target in frame with dead/soft zones
  • `Group Composer` — frame a group of targets
  • `Hard Look At` — no damping, instant look
  • `POV` — player-controlled rotation (FPS)

Common Setups

2D Platformer Camera

Virtual Camera:
  Body: Framing Transposer
    - Screen X/Y: 0.5 (center)
    - Dead Zone Width: 0.1, Height: 0.1
    - Damping: X=1, Y=0.5
  Follow: Player Transform
  Add Extension: CinemachineConfiner2D
    - Bounding Shape: PolygonCollider2D (room bounds)

3D Third-Person Camera

FreeLook Camera:
  Follow: Player Transform
  Look At: Player Head/Chest
  Top/Middle/Bottom Rig:
    - Height, Radius per rig
    - Composer aim in each rig
  X Axis: Input from mouse/stick (orbiting)
  Y Axis: Input from mouse/stick (elevation)

State-Driven Camera (Animator)

State-Driven Camera:
  Animated Target: Player Animator
  States:
    Idle → VCam_Idle (wide shot)
    Run → VCam_Run (further back)
    Combat → VCam_Combat (over shoulder)

Camera Blending

  • Default blend: 2 seconds, EaseInOut
  • Custom blends per transition (from VCam A to VCam B)
  • Cut (0 seconds) for instant switches

Cinemachine Impulse (Screen Shake)

// Source: generates impulse
[SerializeField] private CinemachineImpulseSource _impulseSource;

public void OnExplosion()
{
    _impulseSource.GenerateImpulse();
}

Add `CinemachineImpulseListener` extension to virtual cameras that should respond.

Noise (Handheld Feel)

Add `CinemachineBasicMultiChannelPerlin` to virtual camera:

  • Profile: `6D Shake` or `Handheld_normal_mild`
  • Amplitude/Frequency for intensity

Code Control

// Switch cameras by priority
_combatCamera.Priority = 20; // Higher = active
_exploreCamera.Priority = 10;

// Change follow target
_virtualCamera.Follow = newTarget;
_virtualCamera.LookAt = newTarget;

Confiner

  • **2D:** `CinemachineConfiner2D` + `PolygonCollider2D` (set collider to trigger, non-physics layer)
  • **3D:** `CinemachineConfiner` + `BoxCollider` or `MeshCollider` volume
Read more
Ships witheverything-claude-unity

The ultimate Claude Code toolkit for Unity game development. A production-ready, plug-and-play system that gives Claude Code deep Unity expertise — from writing performant C# to building scenes, profiling performance, and triggering iOS/Android builds — all

Get the whole plugin

Other skills on everything-claude-unity.