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

Register an event that runs when current scene ends.

since

kaplay logo

Misc