onCleanup(action: ()=>void): void
Cleanup function to run when quit() is called.
param
action- The function that runs when quit() is called.
// useful externally from KAPLAY onCleanup(() => { console.log(`ohbye :(`); }); quit();
returns
The event controller.
since
v3000.0