unity-component

Add, remove, and configure components on Unity GameObjects.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-component-yuan-zzzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-component
Source: https://github.com/Yuan-Zzzz/FrogRE/tree/main/.codex/skills/unity-skills/skills/component
Command: npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-component-yuan-zzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces repetitive boilerplate when managing Unity components by enabling scripted add/remove and configuration of components on GameObjects.

Core Features & Use Cases

  • Add, remove, and configure common components (e.g., Rigidbody, Collider, AudioSource) on a single GameObject.
  • Batch operations across multiple objects to optimize API calls and ensure consistent setups.
  • Read and verify component states before applying changes using the related read properties utilities.

Quick Start

Add a Rigidbody component to the targeted GameObject.

Frequently Asked Questions about unity-component

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

FAQPage Schema
How do I add a Rigidbody component to a Unity GameObject using scripting?

You can add a Rigidbody component to a Unity GameObject by specifying the componentType and targeting the object by name, instanceId, or path. The operation validates Unity type names before applying the configuration.

Can I batch configure physics components across multiple Unity GameObjects?

Yes, you can batch configure physics components across multiple Unity GameObjects. This workflow optimizes API calls and ensures consistent setups across all targeted objects in a single operation.

What's the best way to automate Collider setup and configuration in Unity?

Automating Collider setup in Unity is best handled by scripting the add and configure operations. You provide the componentType and target your GameObjects, which reduces repetitive boilerplate during scene configuration.

Does Unity component automation work for reading and verifying AudioSource states?

Yes, Unity component automation supports reading and verifying AudioSource states. You can check component properties before applying changes using related read properties utilities to ensure correct setups.

Why does my Unity component configuration require a componentType input?

Unity component configuration requires a componentType input because it serves as the essential parameter to identify, validate, and manage the specific component on your GameObject before any add, remove, or batch operations are executed.

Are there limitations when targeting Unity GameObjects by path for component removal?

When targeting Unity GameObjects by path for component removal, limitations include ensuring the path is valid and the specified componentType matches a valid Unity type name. Validations are enforced to prevent incorrect usage patterns.