cinemachine
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving the Unity Cinemachine package (com.unity.cinemachine ≥ 3.x) in a Unity project through the unity-open-mcp MCP server. This domain is reflection-gated and opt-in. Unlike other domain packs, the bridge assembly always compiles — but each tool detects Cinemachine 3.x presence at call time. When 3.x is absent (package missing or Cinemachine 2.x installed), every tool returns a clear install / upgrade error envelope. The tool group is hidden from ListTools until the connected session activates it.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
All tools in this pack use unity_open_mcp_cinemachine_*.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP — Cinemachine Extension
Skill for AI agents driving the Unity Cinemachine package
(com.unity.cinemachine ≥ 3.x) in a Unity project through the unity-open-mcp
MCP server.
This domain is reflection-gated and opt-in. Unlike other domain packs, the bridge assembly always compiles — but each tool detects Cinemachine 3.x presence at call time. When 3.x is absent (package missing or Cinemachine 2.x installed), every tool returns a clear install / upgrade error envelope. The tool group is hidden from
ListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The project has
com.unity.cinemachine≥ 3.x installed. Cinemachine 2.x is not supported — the tools returncinemachine_3x_requiredwhen 2.x is detected. Ifcapabilitiesreports thecinemachinegroup as compiled in but a tool returnscinemachine_package_required, install the package via the Package Manager. - The
cinemachinetool group is activated — callunity_open_mcp_manage_tools(action="activate", group="cinemachine")before invoking anycinemachine_*tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand.
Tool prefix
All tools in this pack use unity_open_mcp_cinemachine_*. Mutating tools
accept the standard paths_hint (the host's scene path) and run the full gate
path; the read-only tool (cinemachine_camera_list) is gate-free.
Vocabulary
A CinemachineCamera (3.x) is the virtual camera component. It composes a camera shot from four pipeline slots:
- Body — position control (e.g.
CinemachineFollow,CinemachineFramingTransposer,CinemachineHardLockToTarget). - Aim — rotation control (e.g.
CinemachineRotationComposer,CinemachineHardLookAtTarget). - Noise — shake / handheld motion (e.g.
CinemachineBasicMultiChannelPerlin). - Lens — field of view, near/far clip, dutch (roll).
The active camera is selected by priority (higher wins the Brain's slot).
A CinemachineBrain lives on a Unity Camera and drives it from whichever
CinemachineCamera currently has the highest priority. The Brain is what blends
between cameras.
Follow and Look At are the two target slots on a camera — typically the player Transform (Follow) and an aim target Transform (Look At).
Canonical workflow: a third-person follow camera
- Ensure a Brain —
unity_open_mcp_cinemachine_brain_ensureon the main Camera. AddsCinemachineBrainwhen absent (idempotent when present). - Create the camera —
unity_open_mcp_cinemachine_create_cameraadds a new GameObject withCinemachineCamerato the active scene. Optionally setpriority(higher than competing cameras) and seedfollow_*/look_at_*targets. Returns the new GameObject'sinstanceId. - Set the Follow body —
unity_open_mcp_cinemachine_set_bodywithbody_name="CinemachineFollow"to make the camera trail its Follow target. - Tune the lens —
unity_open_mcp_cinemachine_set_lensto setfield_of_view,near_clip,far_clip, anddutch. - Add shake (optional) —
unity_open_mcp_cinemachine_set_noisewithnoise_name="CinemachineBasicMultiChannelPerlin"for handheld / impact shake.
Re-targeting at runtime
unity_open_mcp_cinemachine_set_targetsswaps Follow and/or Look At. Omit a target to leave it unchanged.
Reflective notes (Cinemachine 3.x)
The Body/Aim/Noise pipeline in 3.x is component-based — set_body /
set_noise add or replace a MonoBehaviour on the camera GameObject. The
component type is passed by unqualified name (e.g. CinemachineFollow),
resolved under the Unity.Cinemachine namespace at call time. Unknown names
return type_not_found.
Lens values live in the Lens struct on the camera (FieldOfView /
NearClipPlane / FarClipPlane); Dutch is a top-level float.
Common recipes
Top-down strategy camera
cinemachine_create_camerawithpriority: 10,position: "0,20,0",rotation: "90,0,0".- Skip Body (the camera is hand-placed). Skip Follow.
cinemachine_set_lenswithfield_of_view: 60.
Cutscene camera with shake
cinemachine_create_camerawithlook_at_path: "Player".cinemachine_set_bodywithbody_name: "CinemachineFramingTransposer".cinemachine_set_noisewithnoise_name: "CinemachineBasicMultiChannelPerlin".
Agent-sense pairing
unity_senses_screenshot(view: "game") visually confirms the camera shot.unity_open_mcp_cinemachine_camera_listenumerates every camera's instance id, priority, and Follow / Look At targets — use it before mutating.
Tool reference
| Tool | Mutating | Lifecycle | Notes |
cinemachine_create_camera | yes | editor_settle | New GameObject + CinemachineCamera. |
cinemachine_set_targets | yes | editor_settle | Set Follow / Look At (omit to leave unchanged). |
cinemachine_set_lens | yes | editor_settle | FOV / near / far / dutch. |
cinemachine_set_body | yes | editor_settle | Add or replace the Body component. |
cinemachine_set_noise | yes | editor_settle | Add or replace the Noise component. |
cinemachine_brain_ensure | yes | editor_settle | Idempotent Brain add on a Camera. |
cinemachine_camera_list | no | none | Enumerate cameras + targets. |
Address every target by instance_id > path > name (same model as
gameobject_* / component_*). Every mutating tool requires a non-empty
paths_hint scoped to the host's scene path — the gate has no whole-project
fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

