unity_gameobject_set_active
Toggle a GameObject's active state in the Unity scene by hierarchy path, name, or instance ID, enabling precise control over object visibility and behavior.
Instructions
Set a GameObject active or inactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Hierarchy path or name of the GameObject | |
| instanceId | No | Instance ID (alternative to path) | |
| active | Yes | Whether the GameObject should be active | |
| 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. |