Skip to content

Slider ​

UIScripts: SliderComponentFeature: UI Controls (≈35 KB)

Optional feature

Slider 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 { SliderComponent } from "mmpx";

const slider = this.entity.TryGetComponent(SliderComponent);

Full API: SliderComponent.

Fields ​

FieldTypeDefaultDescription
Interactable
interactable
booleantrue
Value
value
number0.5
Min Value
minValue
number0
Max Value
maxValue
number1
Whole Numbers
wholeNumbers
booleanfalseSteps of 1
Direction
direction
"left-to-right" | "right-to-left" | "bottom-to-top" | "top-to-bottom""left-to-right"
Handle
handle
Entity—Moved to the value along the track
Fill
fill
Entity—Shows the track up to the value

© 2026 PlayAdGentic