cinemachine-set-targets

Sets or clears Follow and LookAt targets on a Unity CinemachineCamera.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/PMK95/GridSquad --skill cinemachine-set-targets-pmk95
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cinemachine-set-targets
Source: https://github.com/PMK95/GridSquad/tree/main/GridSquadUnity/.agents/skills/cinemachine-set-targets
Command: npx skills add https://github.com/PMK95/GridSquad --skill cinemachine-set-targets-pmk95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Configuring Cinemachine virtual cameras in Unity requires manually wiring Follow and LookAt targets in the Editor, which slows down automated scene setup and AI-driven camera workflows. ## Core Features & Use Cases - Set Follow Target: Assign a GameObject as the position target driving the Body component of a CinemachineCamera. - Set LookAt Target: Assign a GameObject as the aim target driving the Aim component. - Clear Targets: Explicitly remove the Follow or LookAt target using the clearFollow and clearLookAt flags. - Use Case: While building a cutscene, point a CinemachineCamera at the player character for Follow and at a boss enemy for LookAt in a single call, without opening the Unity Inspector. ## Quick Start Ask the AI to set the Follow target of your CinemachineCamera to the player GameObject and clear its LookAt target.

Frequently Asked Questions about cinemachine-set-targets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set the Follow target of a Cinemachine virtual camera in Unity?▼

Call the cinemachine-set-targets tool with gameObjectRef pointing to the GameObject hosting the CinemachineCamera and followRef pointing to the target GameObject. The Follow target drives the position-control Body component.

How do I clear the LookAt target on a CinemachineCamera?▼

Pass clearLookAt set to true in the input JSON, which sets the LookAt target to null. The flag is ignored if you also provide a lookAtRef in the same call.

What is the difference between Follow and LookAt in Cinemachine?▼

Follow is the position target that drives the Body component controlling camera position, while LookAt is the aim target that drives the Aim component controlling camera rotation. They can be set independently.

Why is unity-mcp-cli not found when running the command?▼

The CLI is not installed globally. Install it with npm install -g unity-mcp-cli or prefix commands with npx unity-mcp-cli, then retry the tool call.

Can I reference a GameObject by name instead of instanceID?▼

Yes, GameObjectRef supports instanceID, hierarchy path, name, assetPath, or assetGuid with a defined priority order. instanceID is the recommended and highest-priority option.