AgentSkillsCN

uloop-focus-window

通过 uloop CLI 将 Unity 编辑器窗口置顶。在以下场景中使用:(1) 在截屏前先聚焦 Unity 编辑器;(2) 确保 Unity 窗口清晰可见,便于视觉检查;(3) 将 Unity 置于前台,方便用户进行交互操作。

SKILL.md
--- frontmatter
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 using OS-level commands.

Usage

bash
uloop focus-window

Parameters

None.

Examples

bash
# Focus Unity Editor
uloop focus-window

Output

Returns JSON confirming the window was focused.

Notes

  • Works even when Unity is busy (compiling, domain reload, etc.)
  • Uses OS-level commands (osascript on macOS, PowerShell on Windows)
  • Useful before uloop capture-unity-window to ensure the target window is visible
  • Brings the main Unity Editor window to the foreground