unity-uitoolkit

Create and edit UXML and USS files for Unity UI Toolkit.

8|1|Updated Oct 7, 2025
One-click install
npx skills add https://github.com/Zzulin/unity-project01 --skill unity-uitoolkit-zzulin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-uitoolkit
Source: https://github.com/Zzulin/unity-project01/tree/main/URP1/Plugins/Unity-Skills-main/SkillsForUnity/unity-skills~/skills/uitoolkit
Command: npx skills add https://github.com/Zzulin/unity-project01 --skill unity-uitoolkit-zzulin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a complete, guided workflow for authoring and maintaining Unity UI Toolkit assets so developers and designers can quickly build, style, and attach runtime UI without manual file and scene bookkeeping.

Core Features & Use Cases

  • Create and manage files: generate, read, write, delete USS and UXML files and batch-create paired templates.
  • Scene integration: create and update UIDocument GameObjects and create/read/modify PanelSettings assets with full property support.
  • UXML & USS editing: parse and modify UXML element hierarchies, add/remove/clone elements, and add/update/remove USS rules and variables.
  • Templates & codegen: generate common UI templates (menu, HUD, dialog, card) and produce EditorWindow or runtime MonoBehaviour scaffolds.
  • Inspection & discovery: find USS/UXML files across the project and inspect live UIDocument hierarchies for debugging.
  • Localization guidance: automatically produce Chinese text attributes when the user communicates in Chinese while keeping class names and variables in English.

Quick Start

Create a paired UXML and USS from the "menu" template named MainMenu under Assets/UI and attach it to a new UIDocument in the open scene.

Frequently Asked Questions about unity-uitoolkit

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

FAQPage Schema
How do I generate Unity UI Toolkit UXML and USS files automatically?

You can generate UXML and USS files by using batch operations to create paired templates. This allows you to quickly produce common UI structures like menus, dialogs, and cards without manual file bookkeeping.

How do I attach a UIDocument to a Unity scene and configure PanelSettings?

You can attach runtime UI by creating and updating UIDocument GameObjects directly within a scene. The workflow also supports creating, reading, and modifying PanelSettings assets with full property support.

Can I parse and modify existing UXML element hierarchies and USS rules?

Yes, you can parse UXML element hierarchies to add, remove, or clone elements. You can also add, update, or remove USS rules and variables to style your Unity UI Toolkit components.

Does this Unity UI Toolkit workflow support Unity 2022.3 and newer versions?

Yes, the workflow explicitly applies to Unity 2022.3+ development environments. It is designed to manage UIDocument and PanelSettings assets within these modern Unity project workflows.

What is the best way to debug live UIDocument hierarchies in a Unity project?

The best way to debug is by inspecting live UIDocument hierarchies and discovering USS/UXML files across the project. This allows you to find assets and troubleshoot runtime UI structure issues effectively.