gameobject-component-destroy
Remove specific components from Unity GameObjects to optimize performance and manage object behavior. Use after identifying components with other tools.
Instructions
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectRef | Yes | Target GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} | |
| destroyComponentRefs | Yes | Array of component references to destroy. SCHEMA: [{"typeName":"BoxCollider"}] or [{"typeName":"BoxCollider","index":0}] |