unity-uitoolkit

Build Unity UI Toolkit interfaces with UXML, USS, UIDocument, and PanelSettings.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-uitoolkit-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-uitoolkit
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/uitoolkit
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-uitoolkit-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Unity UI Toolkit interfaces requires coordinating UXML structure files, USS stylesheets, PanelSettings assets, and UIDocument scene objects, and mistakes like using unsupported CSS properties or wrong binding modes silently break asset imports. This Skill provides a governed set of uitk_* operations that create, inspect, and modify UI Toolkit assets with version gating, validation, and clear error reporting. ## Core Features & Use Cases - File and scene authoring: Create and edit USS/UXML files, generate PanelSettings assets, and attach UXML to scenes via UIDocument with correct sort order and parenting. - Structure and style editing: Add, remove, clone, and modify UXML elements and USS rules, with inspection tools to parse existing hierarchies before editing. - Unity 6 features: Runtime data binding written into UXML markup, world-space panels via PanelRenderer or UIDocument, and UXML upgrade tooling, all gated by editor version checks. - Use Case: A developer needs a game HUD. They create a PanelSettings asset with ScaleWithScreenSize, write a USS file with design tokens, generate a UXML layout, and attach it to the scene with uitk_create_document in four calls. ## Quick Start Ask the agent to create a Unity UI Toolkit HUD by generating a PanelSettings asset, a USS stylesheet, a UXML layout, and attaching them to a UIDocument in the current scene.

Frequently Asked Questions about unity-uitoolkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a UI Toolkit interface in Unity?

Create a PanelSettings asset, write a USS stylesheet and UXML layout file, then attach the UXML to the scene with a UIDocument. The uitk_create_panel_settings, uitk_create_uss, uitk_create_uxml, and uitk_create_document skills cover this flow in order.

What is the difference between UI Toolkit and UGUI in Unity?

UI Toolkit uses UXML for structure, USS for styling, and UIDocument for scene attachment, while UGUI uses Canvas, Button, and Image components. The uitk_* skills are UI Toolkit only and must not be mixed with ui_* UGUI skills.

Does Unity USS support CSS features like grid, box-shadow, or calc?

No. USS supports flex layout, transforms, transitions, and CSS variables, but not display:grid, box-shadow, gradients, calc(), @media, pseudo-elements, or z-index. Workarounds include wrapping flex rows for grids and extra child elements for shadows.

Can I use runtime data binding with UI Toolkit?

Yes, on Unity 6000.0 or later. The uitk_runtime_binding_add skill writes DataBinding markup into the UXML asset with validated binding modes, and it updates in place when called again for the same element and property.

Why was my UI Toolkit skill call rejected with SEMANTIC_INVALID?

Calls are rejected when a parameter requires a newer Unity version, an enum value is invalid, or a file path has the wrong extension. The error names the offending parameter and lists valid values, and rejected calls leave assets unchanged.

When should I not use UI Toolkit for world-space UI?

World-space UI requires Unity 6000.2 or later, since UIDocument gained world-space properties in 6000.2 and PanelRenderer only exists in 6000.5+. On older editors, use a UGUI world-space Canvas or the xr_setup_ui_canvas skill instead.