gameobject-component-add

Attaches components to a GameObject by fully qualified type name.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill gameobject-component-add-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/gameobject-component-add
Command: npx skills add https://github.com/sprillion/gem_td --skill gameobject-component-add-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the process of attaching components to GameObjects in opened Prefabs or active Scenes, eliminating repetitive manual steps.

Core Features & Use Cases

  • Locate a GameObject using the gameobject-find tool and attach one or more components by their full namespace-qualified names.
  • Inspect available component types with gameobject-component-list-all to determine valid names before applying changes.
  • Use in both Prefab and Scene contexts to quickly compose or modify GameObject behavior during development.

Quick Start

Find the target GameObject with gameobject-find, then attach the desired component(s) by their full type names.

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?

To add a component to a GameObject in Unity, you provide the component's full namespace-qualified name and a reference to the target GameObject, resolving the target via instanceID, path, or name within an opened Prefab or active Scene.

Can I attach multiple components to a Prefab at once in Unity?

Yes, you can attach multiple components to a Prefab at once by passing an array of full namespace-qualified type names to the target GameObject, eliminating repetitive manual steps during Prefab composition.

How do I find valid component type names to attach in Unity?

You can find valid component type names to attach in Unity by using the gameobject-component-list-all tool, which lists available component types so you can determine the correct namespace-qualified names before applying changes.

Do I need a specific GameObject reference to attach components in a Unity Scene?

Yes, you need a specific GameObject reference to attach components in a Unity Scene, providing details such as the instanceID, path, or name so the target can be resolved accurately in the active Scene context.

What's the best way to automate adding Unity components to GameObjects?

The best way to automate adding Unity components is by specifying the componentNames array and gameObjectRef details, allowing you to quickly compose or modify GameObject behavior in both Prefab and Scene contexts without manual steps.