unity_component_remove
Remove a component from a Unity GameObject by specifying its path and component type.
Instructions
Remove a component from a GameObject.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectPath | Yes | Path or name of the target GameObject | |
| componentType | Yes | Type name of the component to remove | |
| index | No | Index if multiple components of same type (default: 0) | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |