Scrollbar
UIScripts: ScrollbarComponentFeature: UI Controls (≈35 KB)
Optional feature
Scrollbar is part of UI Controls. A build includes it only when a scene, prefab or script uses it — see Feature cropping.
From a script
ts
import { ScrollbarComponent } from "mmpx";
const scrollbar = this.entity.TryGetComponent(ScrollbarComponent);Full API: ScrollbarComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
Handlehandle | Entity | — | Sized to the visible share and moved to the scroll position |
Auto HideautoHide | boolean | false | Visible only while scrolling (needs UIOpacity) |
Hide DelayhideDelay | number (0 … ∞) (s) | 0.8 |