gameobject-destroy

Recursively destroy a GameObject and its children in a Unity scene or Prefab.

Updated May 3, 2026
One-click install
npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill gameobject-destroy-rakamenouya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-destroy
Source: https://github.com/RakameNouya/MR-Bab_10_and_Kel_3/tree/main/.gemini/skills/gameobject-destroy
Command: npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill gameobject-destroy-rakamenouya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Quickly and efficiently remove GameObjects from Unity scenes or Prefabs, streamlining the game development process.

Core Features & Use Cases

  • Immediate GameObject Deletion: Recursively destroy a GameObject and all nested children in the current scene or Prefab.
  • Confirmation of Deletion: Returns the name, path, and instance ID of the destroyed GameObject for confirmation.
  • Use Case: When you need to remove an unnecessary GameObject quickly, use this skill to eliminate it from your scene or Prefab.

Quick Start

Use the 'gameobject-destroy' skill to remove the 'enemy' GameObject from the current scene.

Frequently Asked Questions about gameobject-destroy

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

FAQPage Schema
How do I delete a GameObject and its children in a Unity scene?▼

To delete a GameObject in a Unity scene, you can use a recursive destruction method that targets the object by its instance ID, path, or name to ensure complete removal.

Can I remove GameObjects from Unity Prefabs without leaving traces?▼

Yes, you can remove GameObjects from Unity Prefabs without traces by recursively destroying the target object and all of its nested children.

What's the best way to find and destroy a specific GameObject in Unity?▼

The best way to destroy a specific GameObject in Unity is to reference it via its instance ID, path, or name, then execute recursive deletion to eliminate all nested children.

Does destroying a GameObject in Unity also destroy its child objects?▼

Yes, recursively destroying a GameObject in Unity ensures that the target object and all of its nested children are completely removed with no traces left behind.

How do I confirm a GameObject was successfully destroyed in Unity?▼

You can confirm a GameObject was destroyed in Unity by checking the returned data, which provides the name, path, and instance ID of the destroyed GameObject for verification.