gameobject-component-add

Attach namespace-qualified components to GameObjects in Unity Prefabs or Scenes.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-component-add-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/gameobject-component-add
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-component-add-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add Component to a GameObject in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first. Use 'gameobject-component-list-all' tool to find the component type names to add.

Core Features & Use Cases

  • Add specified components to target GameObjects in Prefabs or active Scenes.
  • Works with opened Prefab or Scene references and supports finding the target GameObject by path or name.
  • Use cases include automating repetitive component wiring during level setup or prefab assembly.

Quick Start

Run the tool with the target component type names and the target GameObject reference to attach components to the opened prefab or active scene.

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 components to a GameObject in a Unity prefab automatically?

To add components to a GameObject in a Unity prefab automatically, provide the full namespace-qualified type names and the target GameObject reference. The tool attaches the specified components to the target within the opened Prefab or active Scene with input validation and success or error reporting.

Can I attach multiple components to a Unity GameObject at once?

Yes, you can attach multiple components to a Unity GameObject at once by supplying a list of full namespace-qualified type names. The tool processes the list and applies all specified components to the target GameObject identified by path, name, or instance.

What's the best way to automate Unity component wiring during level setup?

The best way to automate Unity component wiring during level setup is to use a tool that accepts component type names and a GameObject reference. This automates repetitive wiring tasks in both Prefab and Scene contexts, streamlining assembly workflows.

How do I identify the correct component type names to add to a Unity GameObject?

To identify the correct component type names to add to a Unity GameObject, use the 'gameobject-component-list-all' tool to retrieve available types. You need the full namespace-qualified type list for the tool to successfully attach the components.

Does adding components to a GameObject work with both Unity Scenes and Prefabs?

Yes, adding components to a GameObject works with both Unity Scenes and Prefabs. The tool attaches components to a GameObject within an opened Prefab or the active Scene, supporting targets identified by path, name, or instance reference.

How do I find the target GameObject before adding components in Unity?

To find the target GameObject before adding components in Unity, use the 'gameobject-find' tool. Once located, provide the resulting GameObject reference along with the namespace-qualified component type names to attach the desired components.