gameobject-component-add

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

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/lightvu25/Echoes --skill gameobject-component-add-lightvu25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/lightvu25/Echoes/tree/main/SKILLS/gameobject-component-add
Command: npx skills add https://github.com/lightvu25/Echoes --skill gameobject-component-add-lightvu25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually adding components to GameObjects in Unity can be time-consuming and error-prone, especially when working with prefabs or complex scenes. This skill provides a scripted, repeatable way to attach components quickly, consistently, and at scale.

Core Features & Use Cases

  • Add one or more components to a specific GameObject in an opened Prefab or active Scene using full namespace-qualified type names.
  • Integrates with supporting tools like gameobject-find for locating targets and gameobject-component-list-all for discovering component names.
  • Works with both Prefabs and live Scenes, enabling repeatable setup of GameObject configurations in automation pipelines.

Quick Start

Call the HTTP API: POST http://localhost:57228/api/tools/gameobject-component-add with a target GameObject reference and the full component names to attach.

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 multiple Unity components to a GameObject at once?

Add multiple Unity components to a GameObject by providing a GameObjectRef and an array of full namespace-qualified type names. This automates attaching components simultaneously within an opened Prefab or the active Scene.

Can I automate adding components to Unity Prefabs programmatically?

Yes, you can automate adding components to Unity Prefabs by targeting an opened Prefab with a GameObjectRef and specifying the full namespace-qualified component names. This enables repeatable configuration setups in automation pipelines.

Do I need a GameObjectRef to add components in a Unity Scene?

Yes, a valid GameObjectRef is required to add components in a Unity Scene. It identifies the target GameObject for component attachment, and you can optionally locate targets using the gameobject-find tool.

What is the best way to find the correct component names before adding them to a GameObject?

The best way to find correct component names is to use the gameobject-component-list-all tool. It helps you discover the exact full namespace-qualified type names needed for the component addition process.

Why does adding a Unity component fail when I use a short type name?

Adding a Unity component fails with short type names because the tool enforces full namespace paths for components. You must supply the complete namespace-qualified type name to resolve the component correctly.