com.unity.dt.app-ui 3.0.0-pre.2

Preview

com.unity.dt.app-ui

Source docs
Notes: processedReleased November 14, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 6000.3

Package Dependencies

  • com.unity.modules.androidjni (1.0.0)
  • com.unity.modules.physics (1.0.0)
  • com.unity.modules.screencapture (1.0.0)
  • com.unity.modules.uielements (1.0.0)
  • com.unity.modules.vectorgraphics (1.0.0)

Improvements

  • Breaking: `App UI - Alias.uss` defines `--appui-alias-field-padding-horizontal-sm`, `-md` and `-lg` in place of `--appui-alias-control-padding-horizontal-*`, following the design-token rename. The values are unchanged (`var(--appui-sizing-200)`). No UITK component reads them, so nothing changes size.
  • `AssetTargetField` and `AssetReference` are now public, and the class covers both the registry's `asset-target-field` and `object-field` — the two registry files are identical apart from `object-field` dropping the size prop and the clear button, so a separate `ObjectField` type would have been a strict subset duplicate. Adds `showClearButton`, `emptyLabel`, `customPicker`, `pickRequested`, `cleared`, `ClearValue()` and `OpenPicker()`, and removes the type label the registry does not have. `type` no longer nulls the value on a mismatch: it compared `AssetReference`'s runtime type against the filter and so could never match.
  • `Icon.primary` now defaults to `false`, matching the registry's `icon.tsx`. Every component in the package that builds its own icons asks for `primary = true` explicitly, so nothing in the package or the samples changes appearance; the difference is visible only to callers who construct a bare `Icon` themselves, which is exactly the case the registry governs.
  • `InputLabel` now covers the registry's `PropertyField`: it gains `icon` and `capValue`, and its dead `sizeUssClassName` constant is removed (it was declared, never applied and matched by no USS rule). No new `PropertyField` type was added — `InputLabel` already was one, `draggable` already published the `DragContext` the registry calls `scrub`, and a duplicate class would have been the worse outcome.
  • `ButtonVariant` now matches the registry's six variants: `Default`, `Destructive`, `Outline`, `Secondary`, `Ghost`, `Link`. The `quiet` bool folds into `Ghost`, which is the same treatment under the registry's name. Note that `Default` now means the registry's `default`, the solid accent button — the old neutral `Default` became `Secondary` and `Accent` is gone, so every existing `new Button()` changes appearance.
  • The design sizing axis is now **density** (`normal`/`compact`/`comfort`) instead of **scale** (`small`/`medium`/`large`). `Panel.scale` becomes `Panel.density`, `ScaleContext` becomes `DensityContext`, and the per-element `scaleOverride` becomes `densityOverride` (UXML attribute `density`). This fixes a live bug rather than only renaming: the tokens package moved to a theme × density matrix some time ago, so `Panel` was writing an `appui--medium` class that no stylesheet had defined and the sizing axis was inert at runtime. `Platform.scaleFactor` is display DPI, is unrelated, and is unchanged.
  • `Size` members are renamed `S`/`M`/`L` → `Sm`/`Md`/`Lg`, emitting `--size-sm`/`--size-md`/`--size-lg`. This matches the shadcn registry's control sizes and the `--appui-alias-control-sizing-{sm,md,lg}-*` tokens the USS already consumed, so the class names were the last place the two vocabularies disagreed. `Spacing` is a separate axis with no registry counterpart and is unchanged.
  • `Text` gains a colour axis and its sizes match the registry. `bool primary` is replaced by `TextVariant { Default, Secondary, Muted }` bound to `--appui-alias-text-{primary,secondary,disabled}`, and `TextSize` drops `XXS` and re-binds `{XS, S, M, L, XL, XXL, XXXL}` (names unchanged from 2.3, `M` the default), each step binding to `var(--appui-font-sizes-N)` so the ramp responds to density.
  • The font-size steps have a 10px floor in every density. `--appui-font-sizes-25` (was 7px) and `--appui-font-sizes-50` (was 9px) are 10px at normal and comfort density. In compact, steps 25, 50 and 75 (were 5, 7 and 9px) are 10px and step 100 is 12px (was 10px), level with step 200. Steps 200 and up are unchanged, so text that reads the small steps, such as `body.xxs`, `body.xs`, `body.sm` in compact and `heading.xxs`, gets larger.
  • Icons are now Vector Graphics assets. The 3,750 PNGs under `PackageResources/Icons/` are replaced by the SVGs they were generated fr