Skip to content

SceneTransition

Defined in: SceneTransition.ts:26

A scene transition animates the handoff between scene stack states.

SceneManager keeps both the outgoing and incoming scenes on the stack for the transition’s duration, then removes the outgoing scene afterward. Transitions use raw wall-clock dt and ignore engine + scene timeScale.

readonly duration: number

Defined in: SceneTransition.ts:28

Total duration in wall-clock ms.

optional begin(ctx): void

Defined in: SceneTransition.ts:30

Called once when the transition starts. Set up resources here.

SceneTransitionContext

void


optional end(ctx): void

Defined in: SceneTransition.ts:34

Called when the transition ends. Tear down resources here.

SceneTransitionContext

void


tick(dt, ctx): void

Defined in: SceneTransition.ts:32

Called each frame with frame dt in ms. ctx.elapsed is clamped to duration.

number

SceneTransitionContext

void