uloop-focus-window
Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction.
When & Why to Use This Skill
The uloop-focus-window skill is a specialized utility designed to programmatically bring the Unity Editor window to the foreground using the uloop CLI. It solves the common automation challenge of ensuring the correct application window is active and visible before performing visual tasks. This is essential for maintaining the reliability of automated workflows that involve UI interactions, visual inspections, or screen captures within the Unity environment.
Use Cases
- Automated Screenshot Capture: Ensure the Unity Editor is focused and fully visible before triggering 'uloop capture-unity-window' to avoid capturing background or obscured windows.
- Visual Regression Testing: Automatically bring Unity to the front during CI/CD or local testing scripts to perform visual checks and UI verification.
- Workflow Automation: Streamline developer productivity by programmatically switching focus to the Unity Editor during complex multi-tool automation sequences, reducing the need for manual window management.
| name | uloop-focus-window |
|---|---|
| description | "Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction." |
uloop focus-window
Bring Unity Editor window to front.
Usage
uloop focus-window
Parameters
None.
Examples
# Focus Unity Editor
uloop focus-window
Output
Returns JSON confirming the window was focused.
Notes
- Useful before
uloop capture-unity-windowto ensure the target window is visible - Brings the main Unity Editor window to the foreground