unity_search_by_component
Search all GameObjects in a Unity scene that have a given component type, returning their paths and instance IDs.
Instructions
Find all GameObjects in the scene that have a specific component type. Returns their paths and instance IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentType | Yes | Component type name (e.g. 'Rigidbody', 'Camera', 'AudioSource', 'MyScript') | |
| includeInactive | No | Include inactive GameObjects (default: false) | |
| limit | No | Maximum results to return (default: 500). Use lower values on large scenes. | |
| 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. |