Skip to content

Class: PageViewSystem ​

Drives PageViewComponent. PreRender, before ScrollViewSystem: it writes the ScrollView's offsets and ScrollView applies them to the content the same frame.

Pages = the ScrollView content's children with a UITransform, in order. A page's resting offset centres it in the view (clamped to the scroll range). On release it picks the page (flick speed, then drag distance against scrollThreshold), kills the fling and eases there over turnDuration; writing currentPage (code or Inspector — edit mode too) eases there the same way. A wheel scroll snaps to the nearest page once the wheel goes quiet. PageChanged fires (game running) when it settles on a page other than the last reported.

Extends ​

Constructors ​

Constructor ​

ts
new PageViewSystem(): PageViewSystem;

Returns ​

PageViewSystem

Inherited from ​

ts
BoundComponentSystem<PageViewComponent, BoundPageView>.constructor

Properties ​

PropertyModifierTypeDefault valueInherited from
enabledpublicbooleantrueBoundComponentSystem.enabled
parallelpublicbooleanfalseBoundComponentSystem.parallel

Methods ​

GetName() ​

ts
GetName(): string;

Returns ​

string

Overrides ​

ts
BoundComponentSystem.GetName

GetOrder() ​

ts
GetOrder(): SystemOrder;

Ordered: it writes the offsets ScrollView applies this frame.

Returns ​

SystemOrder


GetPhase() ​

ts
GetPhase(): SystemPhase;

Returns ​

SystemPhase

Overrides ​

ts
BoundComponentSystem.GetPhase

OnClose() ​

ts
OnClose(): void;

Returns ​

void

Inherited from ​

ts
BoundComponentSystem.OnClose

OnInit() ​

ts
OnInit(engine): void;

Parameters ​

ParameterType
engineIEngine

Returns ​

void

Inherited from ​

ts
BoundComponentSystem.OnInit

OnRender() ​

ts
OnRender(scene, _renderer): void;

Parameters ​

ParameterType
sceneScene
_rendererIRenderer

Returns ​

void

Overrides ​

ts
BoundComponentSystem.OnRender

OnRendererChanged() ​

ts
OnRendererChanged(_renderer): void;

Parameters ​

ParameterType
_rendererIRenderer

Returns ​

void

Inherited from ​

ts
BoundComponentSystem.OnRendererChanged

OnStart() ​

ts
OnStart(scene, _renderer): void;

Parameters ​

ParameterType
sceneScene
_rendererIRenderer

Returns ​

void

Inherited from ​

ts
BoundComponentSystem.OnStart

OnStop() ​

ts
OnStop(_scene): void;

Parameters ​

ParameterType
_sceneScene

Returns ​

void

Inherited from ​

ts
BoundComponentSystem.OnStop

OnUpdate() ​

ts
OnUpdate(_scene, _dt): void | Promise<void>;

Parameters ​

ParameterType
_sceneScene
_dtnumber

Returns ​

void | Promise<void>

Inherited from ​

ts
BoundComponentSystem.OnUpdate

© 2026 PlayAdGentic