Take a screenshot of Unity Editor windows and save as PNG image. Use when you need to: (1) Screenshot the Game View, Scene View, Console, Inspector, or other windows, (2) Capture current visual state for debugging or documentation, (3) Save what the Editor looks like as an image file.
Capture any Unity EditorWindow by name and save as PNG.
uloop capture-window [--window-name <name>] [--resolution-scale <scale>] [--match-mode <mode>]
| Parameter | Type | Default | Description |
|---|---|---|---|
--window-name | string | Game | Window name to capture (e.g., "Game", "Scene", "Console", "Inspector", "Project", "Hierarchy", or any EditorWindow title) |
--resolution-scale | number | 1.0 | Resolution scale (0.1 to 1.0) |
--match-mode | enum |
exact |
Window name matching mode: exact, prefix, or contains. All modes are case-insensitive. |
| Mode | Description | Example |
|---|---|---|
exact | Window name must match exactly (case-insensitive) | "Project" matches "Project" only |
prefix | Window name must start with the input | "Project" matches "Project" and "Project Settings" |
contains | Window name must contain the input anywhere | "set" matches "Project Settings" |
The window name is the text displayed in the window's title bar (tab). The user (human) will tell you which window to capture. Common window names include:
You can also specify custom EditorWindow titles (e.g., "EditorWindow Capture Test").
| Option | Description |
|---|---|
--project-path <path> | Target a specific Unity project (mutually exclusive with --port). Path resolution follows the same rules as cd — absolute paths are used as-is, relative paths are resolved from cwd. |
-p, --port <port> | Specify Unity TCP port directly (mutually exclusive with --project-path). |
# Capture Game View at full resolution
uloop capture-window
# Capture Game View at half resolution
uloop capture-window --window-name Game --resolution-scale 0.5
# Capture Scene View
uloop capture-window --window-name Scene
# Capture Console window
uloop capture-window --window-name Console
# Capture Inspector window
uloop capture-window --window-name Inspector
# Capture Project browser (exact match - won't match "Project Settings")
uloop capture-window --window-name Project
# Capture all windows starting with "Project" (prefix match)
uloop capture-window --window-name Project --match-mode prefix
# Capture custom EditorWindow by title
uloop capture-window --window-name "My Custom Window"
Returns JSON with:
CapturedCount: Number of windows capturedCapturedWindows: Array of captured window info, each containing:
ImagePath: Absolute path to the saved PNG fileFileSizeBytes: Size of the saved file in bytesWidth: Captured image width in pixelsHeight: Captured image height in pixelsWhen multiple windows match (e.g., multiple Inspector windows or when using contains mode), all matching windows are captured with numbered filenames (e.g., Inspector_1_*.png, Inspector_2_*.png).
uloop focus-window first if needed