Skip to main content
Glama

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
NameRequiredDescriptionDefault
gameObjectRefYesTarget GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345}
destroyComponentRefsYesArray of component references to destroy. SCHEMA: [{"typeName":"BoxCollider"}] or [{"typeName":"BoxCollider","index":0}]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server