Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ivanmurzak/gameobject-component-destroy
Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first.
Passed 20 of 20 test cases with the skill, and 5 of 20 without it.
and 24 more in the full report
17 fixed5 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
In AIGD.ComponentRef, what is the index of the first component (typically Transform), and what is the default value of index if unspecified?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies 0 as the index of the first component. | Passed | Passed |
| Identifies -1 as the default value for index. | Missed | Passed |
The instructions your model reads when the skill loads.
Destroy one or many components from 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.
gameObjectRef — the host GameObject.destroyComponentRefs — ComponentRefList of components to destroy (matched against the GameObject's components).Iterates go.GetComponents<Component>(), skipping null entries (missing scripts). For each non-null component that matches one of destroyComponentRefs, the tool snapshots a ComponentRef, calls Object.DestroyImmediate, and records the destroyed reference. If no component matches at all, throws with the help text from Error.NotFoundComponents (which includes a preview of all available components on the GameObject).
unity-mcp-cli run-tool gameobject-component-destroy --input '{
"gameObjectRef": "string_value",
"destroyComponentRefs": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool gameobject-component-destroy --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool gameobject-component-destroy --input-file - <<'EOF' {"param": "value"} EOF
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
test cases passed, vs 5 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.