unity_search_by_component
Search all GameObjects in the Unity scene for those with a specific component type. Returns paths and instance IDs for found objects, with options to include inactive GameObjects and limit results.
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. |