Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

create-xr

БесплатноЗапускает вложенные скриптыНе проверен

Sets up a Unity project for XR. Use when user asks for XR, OpenXR, Quest graphics or XR rig.

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Об этом скилле

Set up a Unity project for XR: configure it for the target devices, optimize graphics for Quest, then add a configured XR rig.

Goal: the project builds for the target device(s) with XR enabled, and the user can enter the scene on their headset with working controllers (or hands) and the movement they chose — without building it.

<SKILL_DIR> = the "Base directory for this skill" shown at the top of this document. <PROJECT_PATH> = absolute path to the Unity project on disk.

Critical Rules

  • Do only what's asked. Don't change unrelated assets or files. Avoid long explanations. Unrequested changes are hard for the user to spot and undo.
  • Create a restore point you can roll back to if your changes fail: check the project's version control has no uncommitted changes, or otherwise copy Packages/ and ProjectSettings/ to a folder outside the project.
  • Don't add verification code or logging to the project; read state back through the scripts or eval. Anything you add stays in the user's project and console.
  • Do NOT specify package version numbers — let the Package Manager resolve the latest compatible version, because a pinned version may not support the project's Unity version.
  • Do NOT edit Packages/manifest.json, .unity, .prefab, .asset, or .meta files directly, because the open Editor doesn't validate hand edits and can overwrite them or break on a malformed file.
  • Do NOT write C# files into the project — C# runs only through eval, because a script file forces a recompile and stays in the user's project.
  • Do NOT dismiss Editor dialogs with UI automation, simulated clicks, or key presses, because a dialog asks for a decision that belongs to the user (such as restarting the Editor). If the Editor is blocked by a dialog, tell the user what it says and ask them to answer it.
  • Do NOT write your own package-install or wait-for-Editor loops — use the skill's scripts and the install_package / wait_ready helpers in scripts/_eval.sh, because they already handle reloads, timeouts, and blocking dialogs.
  • Do NOT use reflection or non-public APIs, because they change between Unity versions without notice. If no public API or Pipeline command covers a step, ask the user to do it in the Editor.
  • Use a Pipeline command when one covers the step; eval only when none does, because commands are validated and don't compile C# on every call.
  • Read back the result of every change before the next step, because a call can report success while the Editor is reloading and the value didn't change.

Docs

Before you start a procedure or diagnose a failure:

  1. Open and read the doc pages listed in that procedure's file.
  2. Name the files you read in your response.

This is because your training knowledge about Unity and its XR packages may be outdated, incorrect, or for the wrong version.

The pages are markdown files in <PROJECT_PATH>/Library/PackageCache/<package>@*/Documentation~/ (installed packages only). Read only the .md files in that single subfolder. Don't open non-.md files or other Library or PackageCache folders, because that takes too long. If a page is missing, find it in that folder's TableOfContents.md; if the folder has no .md files, use the online docs. The decisions in this skill still apply.

Prefer WebFetch over WebSearch, because it's faster and lands on the exact page. Replace <VERSION> before fetching:

  • Packages on docs.unity3d.com (https://docs.unity3d.com/Packages/<package>@<VERSION>/manual/): the installed package version, major.minor (e.g. @1.19). Read it from Packages/packages-lock.json, because manifest.json can hold a range.
  • Unity Manual on docs.unity.com (https://docs.unity.com/en-us/engine/<VERSION>/manual/<page>.md): the project's Unity version, major.minor (e.g. 6000.3).

0. Connect

Connect to the project's Editor before anything else, in this order (the unity-cli skill has the command details):

  1. Pipeline package first. If Packages/manifest.json has no com.unity.pipeline, run unity pipeline install before opening the Editor, because Unity reads the manifest when it loads the project. Against an already-open Editor:

    Message Cause Fix
    PIPELINE_MANIFEST_WRITE_FAILED The open Editor holds the manifest Ask the user to close the Editor, then run the install again
    STATUS_PIPELINE_LOAD_PENDING (from unity status) Installed, but loads only when the Editor window regains focus Ask the user to switch to the Editor window
  2. Then the Editor. unity status only lists Editors that already have the Pipeline package, so before opening one, check for Temp/UnityLockfile in the project: if it exists, an Editor probably has the project open already. Don't run unity open (a second Editor would replace it, and the user could lose unsaved work); ask the user to switch to the Editor window instead. If they say Unity isn't open, the file is left over

Полный SKILL.md на GitHub

Установить create-xr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.mdreferences/eval-guide.mdreferences/meta-graphics-setup.mdreferences/rig-pitfalls.mdreferences/rig-recipes.mdreferences/rig-structure.mdreferences/rig.mdreferences/setup-manual.mdreferences/setup.mdscripts/_eval.shscripts/dependency/com.unity.pipeline/0.10.shscripts/dependency/com.unity.pipeline/0.9.shscripts/dependency/com.unity.pipeline/1.0.shscripts/dependency/com.unity.pipeline/FALLBACKscripts/dependency/com.unity.xr.androidxr-openxr/1.0.shscripts/dependency/com.unity.xr.hands/1.9.shscripts/dependency/com.unity.xr.management/4.7.shscripts/dependency/com.unity.xr.openxr/1.19.shscripts/dependency/unity-cli/1.0.0-beta.14.shscripts/dependency/unity-cli/1.0.0-beta.8.shscripts/dependency/unity/6000.0.shscripts/meta-graphics/check.shscripts/meta-graphics/meta-graphics-setup.shscripts/pipeline_check.shscripts/setup/1_modules.shscripts/setup/2_packages.shscripts/setup/3_build_profile.shscripts/setup/4_openxr.shscripts/setup/5_player_settings.shscripts/setup/6_validate.shscripts/setup/_lib.shscripts/setup/check.shscripts/setup/setup.shscripts/status.sh

FAQ

Что делает скилл create-xr?

Sets up a Unity project for XR. Use when user asks for XR, OpenXR, Quest graphics or XR rig.

Как установить скилл create-xr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл create-xr запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить create-xr с