unity_search_by_component
Locate all GameObjects in a Unity scene that use a specified component type and retrieve 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 |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| limit | No | Maximum results to return (default: 500). Use lower values on large scenes. | |
| componentType | Yes | Component type name (e.g. 'Rigidbody', 'Camera', 'AudioSource', 'MyScript') | |
| includeInactive | No | Include inactive GameObjects (default: false) |