unity_component_remove
Remove a specific component from a GameObject by specifying its path, component type, and optional index for duplicates.
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. |