gameobject-component-destroy

Destroy specified components from a target GameObject in Unity projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Destroy one or many components from a target GameObject. Can't destroy missed components. Use 'gameobject-find' tool to find the target GameObject and 'gameobject-component-get' to get component details first.

Core Features & Use Cases

  • Remove one or more components from a targeted GameObject, by reference, with safeguards preventing destruction of non-existent components.
  • Integrates with discovery steps: locate the GameObject with gameobject-find and verify components with gameobject-component-get before destruction.
  • Useful during prefab cleanup, scene reconfiguration, or post-edit adjustments in Unity projects.

Quick Start

Identify the target GameObject with gameobject-find and verify components with gameobject-component-get, then invoke this skill to destroy the specified components.

Frequently Asked Questions about gameobject-component-destroy

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

FAQPage Schema
How do I remove a component from a GameObject in Unity?

To remove a component from a GameObject in Unity, you need a target GameObject reference and a list of component references. This ensures specified components are safely destroyed during cleanup or scene reconfiguration.

What is the best way to safely destroy multiple components on a Unity prefab?

The best way to safely destroy multiple components on a Unity prefab is to provide a list of exact component references. This approach includes safeguards that prevent the destruction of non-existent or missed components during prefab cleanup.

Can I destroy a Transform or Rigidbody component from an active scene GameObject?

Yes, you can destroy a Transform, Rigidbody, or custom component from an active scene GameObject. You must supply the target GameObject reference and the specific component references you wish to remove during scene reconfiguration.

What happens if I try to destroy missed components on a GameObject?

You cannot destroy missed components on a GameObject. The process includes safeguards that prevent the destruction of non-existent components, requiring you to verify all component references beforehand.

Do I need to find a GameObject before removing its components?

Yes, you need to find the GameObject before removing its components. The workflow requires locating the target GameObject with gameobject-find and verifying the components with gameobject-component-get to ensure accurate destruction.