Skip to content

ScrollView ​

UIScripts: ScrollViewComponentFeature: UI Controls (≈35 KB)

Optional feature

ScrollView 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 { ScrollViewComponent } from "mmpx";

const scrollView = this.entity.TryGetComponent(ScrollViewComponent);

Full API: ScrollViewComponent.

Fields ​

FieldTypeDefaultDescription
Content
content
Entity—The entity that scrolls
Horizontal
horizontal
booleantrue
Vertical
vertical
booleantrue
Inertia
inertia
booleantrue
Brake
brake
number (0 … 1)0.5
Offset X
offsetX
number0
Offset Y
offsetY
number0
Elastic
elastic
booleantruePulls past the edges and springs back
Bounce Duration
bounceDuration
number (0.05 … ∞) (s)0.3
Wheel Speed
wheelSpeed
number (0 … ∞)1Mouse wheel scroll speed (0 = off)

Scrollbars ​

FieldTypeDefaultDescription
Horizontal
horizontalScrollbar
Entity—
Vertical
verticalScrollbar
Entity—

© 2026 PlayAdGentic