unity-editor-remote
БесплатноЗапускает вложенные скриптыНе проверенDrive running Unity Editor from shell to verify compiles, playmode, scenes, screenshots. Use when editing C# scripts, scenes, or assets in a Unity project and…
от jim60105★ 22 звезды на GitHubОб этом скилле
Unity Editor Remote
Control a running Unity Editor via a file-polling command bridge. No window clicking, no second editor process.
Protocol
Agent writes <project>/UnityRemote.txt (one command per line, # comments allowed). Editor polls every 0.5 s, executes lines, writes <project>/UnityRemote.result.txt, deletes the command file. Commands are skipped while compiling/updating — wait, never resend.
Full command list with argument formats: references/commands.md.
Setup
- Detect bridge: check
<project>/Assets/UnityRemote.cs. Some projects ship their own variant — grepAssets/**/Editor/*.csfor a command-file poller before deploying. - Deploy if missing: copy
assets/UnityRemote.cs(andassets/UnityRemoteRecorder.csforrecord) intoAssets/, then runrefreshto import + compile. An unfocused editor defers asset import — ifrefreshtimes out, focus the editor window, then retry. Confirm withping. - Send commands:
scripts/unity_cmd.sh <project-root> "ping" # single command
scripts/unity_cmd.sh <project-root> -t 600 "refresh" "ping" # batch with timeout
Verification Loop (after code change)
U=<skill-dir>/scripts/unity_cmd.sh
$U "$P" --compile # refresh → busy-poll until idle → console tail
# 'error CS' = fail; 'console empty' = clean
$U "$P" "play" # enter Play mode
sleep 8 # let systems tick
$U "$P" "state" # playing? MonoBehaviours present? (objs=...)
$U "$P" "errors 50" # runtime exceptions
$U "$P" "stop"
Critical: never trust refresh+ping as a compile gate. refresh returns before recompile starts — same-batch ping/errors answer from the OLD assembly. Use --compile (busy-poll + gen-change check).
Visual Verification
screenshot [relpath] renders the main camera synchronously → PNG at <project>/<relpath>. Captures the Game camera, not editor chrome.
record [sec] [fps] enters Play mode, captures frames → Recordings/shot/frame_####.png + done.txt. Requires assets/UnityRemoteRecorder.cs deployed.
Use layout for window rects + pixelsPerPoint if cropping is needed. OS-level screen capture is unreliable — only use it for editor chrome itself.
Telemetry pattern: errors is the only data channel out of Play mode. Make runtime code log structured single-line events (e.g., Debug.Log($"GAME round={r} score={s}")), then grep errors output. Pass large n (50+) to avoid early entries scrolling out.
Key Rules
- One editor per project — the running editor owns the Library lock. Never launch
-batchmodeon the same project. - Play mode = domain reload — assemblies reload; bridge re-inits. Always
--compilegreen first. - Bridge is editor-only — never shipped in builds. Commit it or
.gitignoreper user preference.
For occlusion caveats, timeout behavior, domain-reload edge cases, and troubleshooting: see references/caveats.md.
Установить unity-editor-remote в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл unity-editor-remote?
Drive running Unity Editor from shell to verify compiles, playmode, scenes, screenshots. Use when editing C# scripts, scenes, or assets in a Unity project and needing to: (1) check compilation succeeds, (2) read console errors, (3) enter/exit Play mode, (4) capture screenshots or frame recordings, (5) select objects or aim the Scene camera, (6) query editor window layout. Injects a file-polling command bridge (UnityRemote.cs) — prefer this over batchmode (fights the Library lock) or GUI automation.
Как установить скилл unity-editor-remote?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-editor-remote запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic