Unload Script is not executing

@BaronAWC found a bug while developing his game. Based on some tests, it seems that 1.19.3 is not executing Unload scripts.

@Luxapodular
The following project is writing to the console when loads and unloads the frames… only loads are executing…

UnloadTest1-27-2021_22-22-12.wick (2.3 KB)

2 Likes

This is also happening with iFrames, I’m trying to make a sort-of VM thing using github pages but when i stop the project or exit the frame, the page will stay around.

You can try adding inside of the iframes script a line to make the project go to the frame you want (add that in the unload script), then run the unload script when necessary to exit the frame and have the iframe removed as well.

Can you guide me through this a bit more, it still doesn’t work
it also doesn’t work on 1.19.4 (Test Editor)

Here’s an example with iframe:

iframe3-7-2021_14-42-35.wick (5.1 KB)
Click the “go to the next frame” to go to next frame, and the iframe should disappear

1 Like

omg thank you this was such a headache