This callback is called when your script is about to get unloaded.
Most basic stuff will be cleaned for you like: Fonts, Images, SimObjects, etc...
function OnUnload() { // Your cleanup code... }
Last updated 1 year ago