Skip to content

Class: SliderSystem ​

Drives SliderComponent. PreRender, before TransformSystem, so the handle lands this frame.

Every frame (edit mode too): value is clamped (and rounded for wholeNumbers), the handle child is moved to it along the track and the fill child shows the track up to it. While the game runs: a press on the track jumps there and the drag follows, through the global pointer stream (so it keeps going off the slider); SliderChanged fires on every change.

Press positions come from IInput, not the entity event, so the jump and the drag share one coordinate space. Pixi's handler and IInput's listener see the same DOM pointerdown in either order, so whichever runs second starts the drag.

Extends ​

Constructors ​

Constructor ​

ts
new SliderSystem(): SliderSystem;

Returns ​

SliderSystem

Inherited from ​

ts
BoundComponentSystem<SliderComponent, BoundSlider>.constructor

Properties ​

PropertyModifierTypeDefault valueInherited from
enabledpublicbooleantrueBoundComponentSystem.enabled
parallelpublicbooleanfalseBoundComponentSystem.parallel

Methods ​

GetName() ​

ts
GetName(): string;

Returns ​

string

Overrides ​

ts
BoundComponentSystem.GetName

GetOrder() ​

ts
GetOrder(): SystemOrder;

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

Overrides ​

ts
BoundComponentSystem.OnStart

OnStop() ​

ts
OnStop(scene): void;

Parameters ​

ParameterType
sceneScene

Returns ​

void

Overrides ​

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