Function

onSceneLeave

(action: (newScene?: string) => void): KEventController

Register an event that runs when current scene ends.

param action- The function to run when the event is triggered.

returns The event controller.

since v3000.0

group Events

kaplay logo

Layer

Miscalenous