unity_search_by_layer
Retrieve all GameObjects on a specified layer. Provide a layer name or index to filter objects, with an optional limit on results. Use the port parameter to target a specific Unity instance in parallel-safe workflows.
Instructions
Find all GameObjects on a specific layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer name or index (e.g. 'UI', 'Water', '5') | |
| limit | No | Maximum results to return (default: 500). | |
| 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. |