uloop-focus-window ยท diff
git:20260618.13795c5 to git:20260622.7b7ead4
3 added, 2 removed. Audit A to A.
---
name: uloop-focus-window
description: "Bring the Unity Editor window to front. Use when Unity must be visible for visual checks or user-facing interaction."
---
# uloop focus-window
Bring Unity Editor window to front using OS-level commands.
## Usage
```bash
uloop focus-window
```
## Global Options
| Option | Description |
|--------|-------------|
| `--project-path <path>` | Optional. Use only when the target Unity project is not the current directory. |
## Examples
```bash
# Focus Unity Editor
uloop focus-window
```
## Output
Returns JSON with:
- - `success`: Whether the focus operation succeeded
- - `message`: Status message (e.g. `Unity Editor window focused (PID: 12345)`, or the failure reason such as `Unity project not found` / `No running Unity process found for this project` / `Failed to focus Unity window: <reason>`)
+
+ - `Success`: Whether the focus operation succeeded
+ - `Message`: Status message (e.g. `Unity Editor window focused (PID: 12345)`, or the failure reason such as `Unity project not found` / `No running Unity process found for this project` / `Failed to focus Unity window: <reason>`)
## Notes
- **Works even when Unity is busy** (compiling, domain reload, etc.)
- Useful before `uloop capture-unity-window` to ensure the target window is visible