USS-styled variant of the built-in UnityEngine.UIElements.Toggle — no custom subclass. Add a color name as a class to tint.

Toggle Component

Setup

html
<engine:Toggle label="Toggle" /> <engine:Toggle label="Toggle" class="yellow" /> <engine:Toggle label="Toggle" class="red" /> <engine:Toggle label="Toggle" class="sky" />

CSS classes

Add the color name as a class (no value). Available color tokens: see colors.

ClassEffect
{color}Tints the toggle accent (checkmark + focus ring).

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