gameobject-destroy

Installation
SKILL.md

GameObject / Destroy

Destroy GameObject and all nested GameObjects recursively in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first.

Behavior

Validates the gameObjectRef, resolves it on the main thread, then calls Object.DestroyImmediate (the immediate variant is required for Editor-mode operations). Returns a DestroyGameObjectResult containing DestroyedName, DestroyedPath, and DestroyedInstanceId so the caller has a record of what was removed.

How to Call

unity-mcp-cli run-tool gameobject-destroy --input '{
  "gameObjectRef": "string_value"
}'
Installs
1
GitHub Stars
4.6K
First Seen
Aug 21, 2026