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.
Properties
Section titled “Properties”duration
Section titled “duration”
readonlyduration:number
Defined in: SceneTransition.ts:28
Total duration in wall-clock ms.
Methods
Section titled “Methods”begin()?
Section titled “begin()?”
optionalbegin(ctx):void
Defined in: SceneTransition.ts:30
Called once when the transition starts. Set up resources here.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
end()?
Section titled “end()?”
optionalend(ctx):void
Defined in: SceneTransition.ts:34
Called when the transition ends. Tear down resources here.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
tick()
Section titled “tick()”tick(
dt,ctx):void
Defined in: SceneTransition.ts:32
Called each frame with frame dt in ms. ctx.elapsed is clamped to duration.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void