跳转到内容

ScrollViewHandle

此内容尚不支持你的语言。

Defined in: ui/widgets/scroll-view.ts:48

readonly content: number

Defined in: ui/widgets/scroll-view.ts:52

The scrolling content frame — parent your content here.


readonly entity: number

Defined in: ui/widgets/scroll-view.ts:50

The viewport entity (the clipped window; add it to your UI tree).


readonly scroll: ScrollContainer

Defined in: ui/widgets/scroll-view.ts:54

The scroll model (escape hatch: scrollBy, onScroll, …).

dispose(): void

Defined in: ui/widgets/scroll-view.ts:58

void


scrollTo(offset): void

Defined in: ui/widgets/scroll-view.ts:55

Vec2

void


setContentSize(size): void

Defined in: ui/widgets/scroll-view.ts:57

Update the scroll range after content changes size.

Vec2

void