UIFlow - Controller Navigation for UI Toolkit
UIFlow makes runtime UI Toolkit screens fully usable with a gamepad and a keyboard. It replaces Unity’s directional focus moves with a scored spatial search, and adds explicit links, navigation scopes (modals, tabs, grids), collection support, focus memory, device switching and a visual debugger.
It is opt-in: only the subtrees you attach it to change behaviour. A normal move doesn’t allocate.
| Page | What’s in it |
|---|---|
| Quick start | Working gamepad navigation in five minutes. |
| Concepts | How a move is decided: rules, scoring, links, scopes, collections, focus memory, devices. |
| API reference | Every public type and member, grouped by feature. |
| Troubleshooting and FAQ | “Why doesn’t focus go there?” and other common questions. |
| Migrating from the default FocusController | What changes when you turn UIFlow on in an existing UI. |
Requirements
Section titled “Requirements”- Unity 6000.3 or later.
- The Input System package (1.11 or later). UI Toolkit’s runtime event system reads it already; UIFlow also reads it to know which device the player uses.
Samples
Section titled “Samples”Import them from the Package Manager, on the package’s Samples tab.
- Main Menu: an irregular layout, explicit links in USS and UXML, focus memory, default focus and a modal dialog.
- Settings Screen: tabs, toggles, sliders, dropdowns, radio groups, and a scrolling list of options.
- Inventory: a grid inside a ScrollView, a virtualized ListView, and side panels.
- Console demo: tabs on the shoulder buttons, horizontal rows, a curated order, a friends list and nested screens.
Each sample has a README that lists what it shows.