unity-uitoolkit

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

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-uitoolkit-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-uitoolkit
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/uitoolkit
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-uitoolkit-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

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 operations that create, edit, inspect, and wire up UI Toolkit assets with version-gated 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 GameObjects. - Structure and style editing: Add, modify, clone, or remove UXML elements and USS rules, with starter templates for menus, HUDs, dialogs, and settings screens. - Unity 6 features: Add runtime data bindings to UXML, create world-space UI panels, and run UXML upgraders, with minimum-version checks that return structured errors instead of opaque failures. - Use Case: Build a game HUD by creating a PanelSettings asset with ScaleWithScreenSize, writing a USS file with design tokens, generating a UXML layout, and attaching it to the scene with a UIDocument — all in four calls. ## Quick Start Ask the assistant to create a Unity UI Toolkit HUD screen with a PanelSettings asset, a USS stylesheet, a UXML layout, and a UIDocument attached to the 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 screen in Unity?

Create a PanelSettings asset with a scale mode, write a USS stylesheet and a UXML layout file, then attach the UXML to the scene with a UIDocument GameObject. Starter templates for menus, HUDs, dialogs, and settings screens can generate paired UXML and USS files in one step.

What is the difference between UI Toolkit and UGUI Canvas 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 two systems are separate and their skills should not be mixed; use the ui module for UGUI workflows.

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

No. USS supports flexbox layout, transforms, transitions, and CSS variables, but not display:grid, box-shadow, calc(), @media, pseudo-elements, z-index, or gradients. Grids are emulated with wrapping flex rows and shadows with a nested background element.

Can I use runtime data binding in Unity UI Toolkit?

Runtime data binding requires Unity 6000.0 or later and writes a DataBinding element into the UXML asset with a property and binding mode. On older editors like 2022.3, use binding-path SerializedObject binding for editor UI instead.

Why does world-space UI Toolkit panel creation fail on my Unity version?

World-space UI requires Unity 6000.2 or later, where UIDocument gained world-space properties; PanelRenderer only exists in 6000.5+. On older versions, use a UGUI world-space Canvas instead, and the skill returns a structured error naming the required version.

Why can't I write a C# script with the USS/UXML file writer?

The file write operation only accepts paths ending in .uss or .uxml and rejects other extensions with a SEMANTIC_INVALID error before creating anything. Use the script creation skill for .cs files, which correctly declares the domain reload that writing a script triggers.