unity-component

Manage Unity GameObject components with add, remove, list, copy, enable, and property operations.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-component-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-component
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/component
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-component-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers need a reliable, centralized way to manage components on GameObjects, including adding, removing, listing, copying, enabling/disabling, and reading or setting properties (Rigidbody, Collider, AudioSource, and custom scripts) to streamline workflows and reduce manual scripting.

Core Features & Use Cases

  • Add a component to a GameObject (single-object or batch)
  • Remove a component from one or more objects
  • List components and read their properties
  • Set component properties (mass, enabled, transforms, etc.)
  • Copy components between GameObjects
  • Enable/disable components to control behavior
  • Batch operations to minimize API calls and improve consistency

Quick Start

Add a Rigidbody to the GameObject named Box1 and set its mass to 2.0.

Frequently Asked Questions about unity-component

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

FAQPage Schema
How do I add and configure a Rigidbody component on a Unity GameObject programmatically?

To add and configure a Rigidbody component programmatically, you can target the GameObject by name, instanceId, or path, add the Rigidbody, and set properties like mass in a single batch schema operation.

Can I batch copy components between multiple Unity GameObjects at once?

Yes, you can batch copy components between Unity GameObjects by specifying source and target objects through name, instanceId, or path, applying the copy operation across multiple objects to ensure scene consistency.

What is the best way to list components and read their properties on a Unity GameObject?

The best way to list components and read properties is by targeting the Unity GameObject via name or instanceId, retrieving all attached components, and accessing their specific property values like mass or enabled state.

Does Unity component scripting support enabling and disabling components during runtime?

Yes, Unity component scripting supports enabling and disabling components during runtime by targeting the specific GameObject and component, toggling the enabled property to control behavior dynamically without removing the component.

Why use batch schemas for Unity GameObject component management instead of individual scripts?

Batch schemas minimize API calls and improve consistency when managing Unity GameObject components across multiple objects, allowing you to add, remove, or modify properties like mass and transforms simultaneously rather than scripting each individually.

How do I remove a component from a Unity GameObject without deleting the object itself?

To remove a component from a Unity GameObject without deleting the object, target the specific object by name or path and issue a remove command for the attached component, such as a Collider or AudioSource, leaving the GameObject intact.