USS-styled variant of the built-in UnityEngine.UIElements.DropdownField — no custom subclass. Unity's dropdown can't be re-coloured by USS class alone, so Luna exposes USS variables you override at :root (or any selector) instead.

Dropdown Component

Setup

html
<engine:DropdownField label="Region" choices="EU,NA,APAC" />

CSS variables

Override at :root (or any selector) to retint the dropdown.

css
:root { --color-dropdown-bg: var(--color-slate-600); --color-dropdown-hover: var(--color-slate-400); --color-dropdown-active: var(--color-red-400); }
VariableTargets
--color-dropdown-bgResting background.
--color-dropdown-hoverHover background.
--color-dropdown-activeActive / open background.

Available color tokens: see colors.

See also

  • 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