gameobject-component-add

Adds components to GameObjects in Unity scenes or prefabs via unity-mcp-cli.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-component-add-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/gameobject-component-add
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-component-add-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually attaching components to GameObjects in the Unity Editor is repetitive, especially when automating scene setup or building editor workflows through AI assistants. This Skill lets you add one or more components to a target GameObject in an open prefab or active scene through a single CLI command. ## Core Features & Use Cases - Component Attachment: Add one or multiple components by full namespace-qualified class name to any GameObject. - Flexible Targeting: Locate the target GameObject by instanceID, hierarchy path, name, or asset reference. - Structured Feedback: Receive added components, success messages, warnings, and errors in a structured JSON response. - Use Case: While building a Unity scene through an AI assistant, attach a Rigidbody and a custom PlayerController script to the player GameObject without opening the Inspector. ## Quick Start Ask the AI to add a Rigidbody component to the GameObject named Player in the active Unity scene using the gameobject-component-add tool.

Frequently Asked Questions about gameobject-component-add

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

FAQPage Schema
How do I add a component to a GameObject in Unity from the command line?

Run unity-mcp-cli run-tool gameobject-component-add with a JSON input containing componentNames and a gameObjectRef. The component name must include the full namespace path and class name, and the GameObject can be referenced by instanceID, path, or name.

How do I find the component type names available to add in Unity?

Use the gameobject-component-list-all tool to discover available component type names before adding them. Component names must include the full namespace path and class name, such as UnityEngine.Rigidbody.

Can I add multiple components to a GameObject at once?

Yes, the componentNames parameter accepts an array of strings, so you can pass several fully qualified component class names in a single call. The response lists successfully added components along with any warnings or errors per component.

What should I do if unity-mcp-cli is not found?

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill provides detailed installation instructions.

How do I reference a GameObject in a Unity scene or prefab?

Provide a gameObjectRef with the instanceID (highest priority), a hierarchy path like character/hand/finger, a GameObject name, or an asset path and GUID for prefabs. Use the gameobject-find tool first to locate the target.