gameobject-component-add

Add components to a Unity GameObject in an opened Prefab or Scene.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill gameobject-component-add-silac1995
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.claude/skills/gameobject-component-add
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill gameobject-component-add-silac1995

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add Component to a targeted GameObject within an opened Prefab or Scene, enabling automated, repeatable setup without manual editor clicks.

Core Features & Use Cases

  • Programmatically add one or more components by their full type names to a specified GameObject found via the gameobject-find tool.
  • Works for both Prefabs and active Scenes; supports deterministic inputs and repeatable workflows.
  • Use the gameobject-component-list-all tool to discover valid component type names before adding.

Quick Start

Call the unity-mcp-cli tool with a JSON input specifying componentNames and gameObjectRef to attach the components to the target GameObject.

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 a Unity Scene automatically?▼

To add a component to a GameObject in a Unity Scene, provide the target GameObject reference and the desired component type names to programmatically attach components without manual editor clicks.

Can I programmatically attach multiple components to a Unity Prefab?▼

Yes, you can attach multiple components to a Unity Prefab by supplying a list of full type names and a GameObject reference, enabling deterministic and repeatable setup workflows.

What is the best way to automate adding Unity components to specific GameObjects?▼

Automating adding Unity components requires a structured input with componentNames and a gameObjectRef, outputting a structured result containing AddedComponents, Messages, Warnings, and Errors.

How do I find valid component type names before adding them to a GameObject?▼

To find valid component type names before adding them, use the gameobject-component-list-all tool to discover available types, ensuring you pass accurate full type names to the target GameObject.

Does adding Unity components to GameObjects work for both Prefabs and active Scenes?▼

Yes, adding Unity components works for both opened Prefabs and active Scenes, allowing you to deterministically attach components to a targeted GameObject in either environment.

Why does my Unity component addition output include Warnings and Errors?▼

Adding Unity components includes Warnings and Errors in its structured output to report issues encountered during the deterministic attachment process, helping you identify incorrect type names or invalid GameObject references.