Skill站外收录 @skilllib/skill-2117939930272412025
uloop-screenshot
支持捕获 Unity 编辑器中任意指定窗口的当前画面并保存为 PNG 图像,可按名称精确或模糊匹配目标窗口,适用于记录视觉状态、调试或文档生成,输出包含图像路径与尺寸信息。
软件开发 AI 技能
Skills.MD
# uloop capture-window
Capture any Unity EditorWindow by name and save as PNG.
## Usage
```bash
uloop capture-window [--window-name <name>] [--resolution-scale <scale>] [--match-mode <mode>]
```
## Parameters
| 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. |
## Match Modes
| 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" |
## Window Name
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:
- **Game**: Game View window
- **Scene**: Scene View window
- **Console**: Console window
- **Inspector**: Inspector window
- **Project**: Project browser window
- **Hierarchy**: Hierarchy window
- **Animation**: Animation window
- **Animator**: Animator window
- **Profiler**: Profiler window
- **Audio Mixer**: Audio Mixer window
You can also specify custom EditorWindow titles (e.g., "EditorWindow Capture Test").
## Examples
```bash
# 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"
```
## Output
Returns JSON with:
- `CapturedCount`: Number of windows captured
- `CapturedWindows`: Array of captured window info, each containing:
- `ImagePath`: Absolute path to the saved PNG file
- `FileSizeBytes`: Size of the saved file in bytes
- `Width`: Captured image width in pixels
- `Height`: Captured image height in pixels
When 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`).
## Notes
- Use `uloop focus-window` first if needed
- Target window must be open in Unity Editor
- Window name matching is always case-insensitive
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「uloop-screenshot」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次