02 — Project Setup and Settings

What to install: nothing

In Unity 6, UI Toolkit and the UI Builder ship with the editor. There is no package to add. (You only visit the Package Manager if you're on ancient Unity 2020 — and this course assumes Unity 6.)

Optional but recommended installs for class projects:

The three setup pieces (do this once per project)

To show UI Toolkit content at runtime you need exactly three things:

1. A Panel Settings asset

Assets → Create → UI Toolkit → Panel Settings Asset.

This controls how your UI renders. The settings that matter on day one:

2. A runtime theme

Assets → Create → UI Toolkit → TSS Theme File, or just accept the UnityDefaultRuntimeTheme.tss Unity offers to create. Assign it to the Panel Settings' Theme Style Sheet slot. A theme file is one line — it imports Unity's default control styles:

@import url("unity-theme://default");

3. A UIDocument in the scene

GameObject → UI Toolkit → UI Document. On the component:

That's the whole pipeline: UXML file → UIDocument → Panel Settings → screen.

The kit automates this

Tools → UI Toolkit Starter Kit → Create Sample HUD In Current Scene performs all three steps for you (see Scripts/Editor/StarterKitSetup.cs — reading it is a nice bonus lesson in editor scripting).

Settings checklist

Next: 03 - UI Builder Basics