unity-uitoolkit

Create and edit UXML layouts, USS stylesheets, and UIDocument attachments for Unity UI Toolkit.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-uitoolkit-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-uitoolkit
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/unity-uitoolkit
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-uitoolkit-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of building Unity UI Toolkit interfaces by helping you author UXML structure, USS styling, and UIDocument hookups in one workflow.

Core Features & Use Cases

  • UXML Layouts: Create and edit visual hierarchies for runtime menus, HUDs, editor windows, and settings panels.
  • USS Styling: Define reusable UI styling, spacing, tokens, and component variants with UI Toolkit-safe properties.
  • Scene Integration: Attach UI Toolkit documents to Unity objects and configure PanelSettings for rendering.
  • Use Case: A Unity developer can use this Skill to turn a rough menu concept into a styled, scene-ready interface without hand-editing every asset.

Quick Start

Use the unity-uitoolkit skill to create a styled UXML layout, connect it to a USS stylesheet, and wire it to a UIDocument with the correct PanelSettings.

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 Unity UI Toolkit layout with UXML and USS?

To create a Unity UI Toolkit layout, you build UXML visual hierarchies and connect them to USS stylesheets for reusable styling. This workflow handles runtime menus, HUDs, and editor windows by enforcing UI Toolkit-specific asset properties without UGUI Canvas assumptions.

What's the best way to attach a UIDocument to a Unity scene?

The best way to attach a UIDocument to a Unity scene is to configure the document attachment alongside the correct PanelSettings for rendering. This scene integration connects your UXML layouts to Unity objects for immediate runtime display.

Does Unity UI Toolkit work with UGUI Canvas components?

Unity UI Toolkit does not work with UGUI Canvas components, as it enforces UITK-specific asset handling and avoids mixing in UGUI assumptions. You must use UXML and USS assets to structure and style your interfaces instead of Canvas elements.

Do I need a specific Unity version to use UI Toolkit features?

You need Unity 2022.3 or newer to use these UI Toolkit features effectively. This version requirement ensures full compatibility with UXML layouts, USS stylesheets, UIDocument attachments, and PanelSettings asset configurations.

How do I style reusable UI components in Unity UIToolkit?

You style reusable UI components in Unity UIToolkit by defining spacing, style tokens, and component variants using USS stylesheets. This approach applies UI Toolkit-safe properties to ensure consistent visual styling across runtime menus and editor windows.