UI Toolkit Starter Kit — Start Here

Welcome! This kit teaches you Unity's modern UI system, UI Toolkit, by building a working game HUD: a health bar, a score counter, a description panel, styled buttons with hover/press/disabled states, and a settings row with a toggle, dropdown, and text field.

What you need

What's in the kit

Path What it is
UI/HUD.uxml The UI layout (structure) — like HTML
UI/StarterKit.uss The stylesheet (look & states) — like CSS
Scripts/HealthScoreSystem.cs Game state: health + score (the model)
Scripts/HUDController.cs Connects UI to game state (the view)
Scripts/Editor/StarterKitSetup.cs One-click scene setup menu
Tutorial/ These lessons

Fastest possible start (2 minutes)

  1. Open any scene.
  2. Menu bar → Tools → UI Toolkit Starter Kit → Create Sample HUD In Current Scene.
  3. Press Play. Click the buttons, drag the slider, toggle God Mode.

Then come back and work through the lessons to understand what just happened.

Lesson path

  1. 01 - What Is UI Toolkit — the three ingredients: UXML, USS, C#
  2. 02 - Project Setup and Settings — Panel Settings, themes, UIDocument
  3. 03 - UI Builder Basics — the visual editor and Flexbox layout
  4. 04 - Building the HUD — recreate the kit's HUD yourself, step by step
  5. 05 - Styling and Button States — USS selectors, pseudo-classes, transitions
  6. 06 - Wiring It Up With C Sharp — queries, events, updating the UI
  7. 07 - Reusing and Exporting — use the kit in your own projects; make your own package

Reference library

Official (start here):

Sample projects worth dissecting:

Good video introductions:

Next: 01 - What Is UI Toolkit