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

Register an event that runs when current scene ends.

sincev3000.0

kaplay logo