List & ScrollView

USS-styling for the built-in UnityEngine.UIElements.ListView and UnityEngine.UIElements.ScrollView — no custom subclass. The same color classes apply to both.

List Component

Setup

xml
<ui:UXML xmlns:ui="UnityEngine.UIElements"> <ui:ListView name="ListSky" fixed-item-height="100" class="sky" /> <ui:ListView name="ListPurple" fixed-item-height="100" class="purple" /> <ui:ListView name="ListDefault" fixed-item-height="100" /> <ui:ScrollView class="sky" /> <ui:ScrollView class="red" /> </ui:UXML>

⚠️ A ListView in UXML alone renders an empty box. Rows only appear once C# supplies itemsSource plus the makeItem/bindItem pair — the classes on this page only control how the list looks. See the ListView guide for the full populate-from-C# contract.

CSS classes

ClassEffect
{color}Tints the scrollbar / hover / selected-row accents. See colors.
xml
<ui:ListView class="red" /> <ui:ScrollView class="red" />

See also

  • ListView guide — populating a ListView from C# (itemsSource, makeItem/bindItem, virtualization, selection)
  • GridView — wrapping multi-column variant
  • Colors — full color palette

Settings

Theme

Light

Contrast

Material

Dark

Dim

Material Dark

System

Sidebar(Light & Contrast only)

Light
Dark

Font Family

DM Sans

Wix

Inclusive Sans

AR One Sans

Direction

LTR
RTL