uloop-focus-window

Bring the Unity Editor window to the foreground using osascript or PowerShell.

500|44|Updated Jun 15, 2025
One-click install
npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-focus-window-hatayama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uloop-focus-window
Source: https://github.com/hatayama/unity-cli-loop/tree/main/.agents/skills/uloop-focus-window
Command: npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-focus-window-hatayama

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of the Unity Editor window being hidden behind other applications or not focused during automated workflows, ensuring the Editor is brought to the front so visual checks, screenshots, or manual interactions can proceed.

Core Features & Use Cases

  • OS-level focusing: Uses native OS tools to bring the main Unity Editor window to the foreground on macOS and Windows.
  • Reliable during busy states: Works even when the Editor is compiling, reloading domains, or otherwise busy.
  • Common uses: Ensure the window is visible before taking screenshots, perform manual inspection during automated tests, or bring the Editor forward for user interaction in CI-assisted workflows.

Quick Start

Run uloop focus-window in your project directory to bring the Unity Editor window to the front and receive JSON confirmation.

Frequently Asked Questions about uloop-focus-window

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bring the Unity Editor window to the foreground during automation?

To bring the Unity Editor window to the foreground during automation, you can use a CLI tool that triggers OS-level mechanisms like osascript on macOS and PowerShell on Windows to focus the main window and return JSON confirmation.

Can I focus the Unity Editor window while it is compiling or busy?

Yes, you can focus the Unity Editor window even when it is compiling, reloading domains, or otherwise busy, ensuring visual checks and screenshots proceed without interruption.

How do I make the Unity Editor visible for screenshots in CI workflows?

To make the Unity Editor visible for screenshots in CI workflows, run a CLI command in your project directory that uses native OS tools to bring the Editor forward and receives JSON confirmation of success.

Does focusing the Unity Editor work on both macOS and Windows?

Yes, focusing the Unity Editor works on both macOS and Windows by utilizing native OS-level tools such as osascript and PowerShell to identify and focus the main Editor window.

Why is the Unity Editor hidden behind other windows during automated tests?

The Unity Editor is often hidden behind other windows during automated tests because OS focus shifts to other applications, requiring native OS commands to bring it back to the front for manual interaction.

What is the best way to perform manual inspection of the Unity Editor during automated tests?

The best way to perform manual inspection during automated tests is to use a CLI command that brings the Unity Editor forward using OS-level mechanisms, ensuring the window is visible for user interaction.