unity-ui
Installation
SKILL.md
Unity UI Skills
Unity UGUI and Canvas workflows. This module is separate from UI Toolkit. Parameters come from the schema (GET /skills/schema?names=<skill>&wire=v2); execution and dryRun rules: root SKILL.md. Extended examples: UI_REFERENCE.md.
When to use
- Building UGUI screens
- Adding Canvas elements
- Arranging UI layout
Rules
- Prefer
ui_create_batchwhen creating two or more UI elements. Itsitemsparameter is a JSON string, not a raw array. - Most create skills take no
xory. Create the element, then place it withui_set_rect,ui_set_anchororui_layout_children.ui_create_batchis for bulk creation, not precise placement. ui_create_canvasdefaults toScreenSpaceOverlay. Create the Canvas once, then a panel, then the controls inside the panel.- Text creation detects TextMeshPro:
TextMeshProUGUIwhen TMP is installed, the legacyTextotherwise. The response says which one was created. ui_create_*skills and batch items takeparentEntityId, which outranksparent. Unlike a parent name that does not match, it never falls back to the first Canvas.ui_align_selected,ui_distribute_selectedand the selection-based layout act on the UI elements selected in the Hierarchy. Select them first.- For world-space gameplay UI, build the Canvas here, then convert it for XR with
xr_setup_ui_canvasif needed. - To delete a UI node, use the gameobject module.