ProgressBar
UIScripts: ProgressBarComponentFeature: UI Controls (≈35 KB)
Optional feature
ProgressBar 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 { ProgressBarComponent } from "mmpx";
const progressBar = this.entity.TryGetComponent(ProgressBarComponent);Full API: ProgressBarComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
Progressprogress | number (0 … 1) | 0.5 | |
Directiondirection | "left-to-right" | "right-to-left" | "bottom-to-top" | "top-to-bottom" | "left-to-right" | |
Barbar | Entity | — | The child that shows the progress |