Command Palette

Search for a command to run...

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

create-ui

БесплатноБез исполняемых скриптовНе проверен

Creates, edits, and explains Unity game and editor UI in UI Toolkit, uGUI, or IMGUI, matching the framework the project already uses. Use when the user wants…

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

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

Create and edit Unity UI

Build, change, and explain UI with whichever of Unity's three UI frameworks fits the project, and deliver new UI as a working demo that you have run and reviewed.

This skill works best with the Unity CLI driving an open Editor (the unity-cli skill), the workflow it was built and tested with: compiling, reading the Console, entering Play mode, running tests, and capturing the Game view from the command line. Without it, the build and review steps need the user to do those in the Editor.

Important

  • Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need. Replace <VERSION> with the following before fetching:
    • docs.unity.com: The Unity version, eg 6000.7. Read it from ProjectSettings/ProjectVersion.txt and keep the major and minor parts only. The guides link the .md form of each page, which is shorter to read than the HTML page.
    • Package docs: if the project has the package's docs at Library/PackageCache/<package>@*/Documentation~/, read those .md files instead of fetching, as the uGUI guide does.
  • Before you go forward with a workflow or diagnosis, open and read the doc pages that the framework guide says to read for what you're about to build, and name the pages you read in your reply. Fetch other pages only for a feature you use that the guide doesn't cover. This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.
  • Create a restore point you can roll back to if your changes fail, because UI changes touch scenes, assets, and scripts at once: copy the scene and any files you'll change into Temp/restore/ in the project. Unity doesn't import Temp/, and nothing outside the project changes.
  • Do only what's asked. Don't change unrelated assets or files. Avoid long explanations. A request to create UI asks for the deliverables in Step 4, so build all of them.
  • Never leave verification code in the user's script. Never build logging or detection into their scripts that they didn't ask for; the mock HUD test's [UI check] log line is part of the test, not of their scripts. To check behaviour in Play mode, read the values you need through script eval, as the framework guide's Checks section describes.
  • Use the Unity CLI to compile, read the Console, enter Play mode, and capture the Game view. For UI Toolkit, the guide lists the commands and flags a UI build needs, so load the unity-cli skill only if one of them fails; for uGUI and IMGUI, use the unity-cli skill. If the CLI can't reach the Editor, ask the user to focus the Unity Editor and tell you what the Console shows, because the Editor only imports and compiles new files when it's focused or told to recompile.

Glossary

Term Meaning
UI Toolkit (UITK, UIElements) UI built from UXML files (structure) and USS files (styles), for runtime and Editor UI
uGUI (Unity UI, Canvas UI) UI built from GameObjects with RectTransforms under a Canvas, from the com.unity.ugui package
IMGUI (immediate mode GUI) UI drawn from code every frame in OnGUI(), used for older Editor tools and debug overlays
"legacy UI" Usually uGUI. If the user points at OnGUI code, they mean IMGUI.
Panel Renderer, UI Document Components that show a UXML file in a scene. New UI uses Panel Renderer; UI Document isn't the default for new UI, but existing scenes may use it.
Panel Settings The asset that controls how a UI Toolkit panel renders and scales
Theme Style Sheet (TSS) Default styles for the built-in UI Toolkit controls, assigned on the Panel Settings
TextMesh Pro (TMP) uGUI's text components and font assets. UI Toolkit uses its own TextCore font assets.
Controller script The MonoBehaviour this skill adds to feed live values to the UI and handle its input

Step 1: Get the project context

  1. Read ProjectSettings/ProjectVersion.txt. Its major and minor version is <VERSION>. If it's older than 6000.7, tell the user this skill is written for Unity 6000.7 and later, and ask before you continue.
  2. Read Packages/manifest.json. com.unity.ugui provides uGUI and TextMesh Pro, and com.unity.inputsystem decides which input module uGUI needs.
  3. Read activeInputHandler in ProjectSettings/ProjectSettings.asset: 0 is the old Input Manager, 1 is the Input System package, and 2 is both.
  4. Check whether the Unity CLI reaches an open Editor for this project. If it does, note the cursor that console status returns, so you can later read only the Console entries logged after you started. Never run console clear, because it also deletes the user's own entries, including errors they may want fixed.

Step 2: Pick the framework

  1. If the request names a framework, a file type, or a component from this table, use that framework, because the user's choice overrides what the project uses elsewhere.

    | Request mentions | Framework | |--

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

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

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

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

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

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

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

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

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

SECURITY.mdreferences/imgui-skill.mdreferences/ugui-scrollview-setup.mdreferences/ugui-skill.mdreferences/ui-visual-design.mdreferences/uitk-painter2d.mdreferences/uitk-pointermanipulator-guide.mdreferences/uitk-skill.mdreferences/uitk-svg-icons.mdreferences/uitk-testing.md

FAQ

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

Creates, edits, and explains Unity game and editor UI in UI Toolkit, uGUI, or IMGUI, matching the framework the project already uses. Use when the user wants a menu, HUD, or editor window built, changed, styled, or explained.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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