unity-editor-tools
Unity Editor utilities -- ping, project settings, profiler, console, menu items, windows, and selection.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Editor Utilities & Profiler
Use this skill for editor-wide diagnostics and operations.
Read references/editor-ops-checklist.md when you need a safer sequence for settings, package, or profiler changes.
Use When
- The user asks for editor health checks, console logs, or profiler data.
- The user wants to inspect or change project settings.
- The user wants to run a menu item, inspect windows, or manipulate current selection.
- The user wants package manager or registry operations from the editor side.
Do Not Use When
- The task is primarily about a specific scene, prefab, asset, or script workflow.
- The user only needs local source inspection with no Unity Editor interaction.
Recommended Flow
- Start with
unity-cli system pingandget_editor_stateso later actions run against a known-good editor. - Read state before mutating it: console before clearing, settings before updating, profiler status before starting or stopping.
- Apply one editor-wide change at a time and verify the result immediately.
- When project settings or packages change, capture the before/after state in the response.
Connection & Info
unity-cli system ping
unity-cli raw get_editor_info --json '{}'
unity-cli raw get_editor_state --json '{}'
unity-cli raw get_command_stats --json '{}'
Project Settings
unity-cli raw get_project_settings --json '{"includePlayer":true}'
unity-cli raw update_project_settings --json '{"confirmChanges":true,"player":{"companyName":"MyStudio"}}'
Editor Operations
unity-cli raw execute_menu_item --json '{"menuPath":"File/Save Project"}'
unity-cli raw manage_windows --json '{"action":"get"}'
unity-cli raw manage_selection --json '{"action":"get"}'
unity-cli raw manage_selection --json '{"action":"set","objectPaths":["/Player"]}'
unity-cli raw manage_tools --json '{"action":"get"}'
unity-cli raw quit_editor --json '{}'
Console
unity-cli raw read_console --json '{"count":20}'
unity-cli raw clear_console --json '{}'
unity-cli raw clear_logs --json '{}'
Profiler
unity-cli raw profiler_start --json '{}'
unity-cli raw profiler_stop --json '{}'
unity-cli raw profiler_status --json '{}'
unity-cli raw profiler_get_metrics --json '{"listAvailable":true}'
Package Manager
unity-cli raw package_manager --json '{"action":"list"}'
unity-cli raw package_manager --json '{"action":"install","packageId":"com.unity.inputsystem"}'
unity-cli raw registry_config --json '{"action":"list"}'
Examples
- "Show me the latest Unity console errors."
- "Update the company name in Project Settings."
- "Start the profiler, let it record briefly, then stop and report the status."
Common Issues
-
system pingfails: the Unity Editor bridge is not reachable, so stop before running settings or profiler operations. - Console output is too noisy: add filters such as
count,filterText, orlogTypesbefore clearing anything. -
update_project_settingsis rejected: include"confirmChanges": trueand send only the sections that need to change. - Profiler results are empty: query
profiler_statusfirst and useprofiler_get_metrics --json '{"listAvailable":true}'before requesting specific metrics.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!