garbage collection in between scene changes?

I have two scenes A and B. Scene B is more memory intensive than A.

I can load scene B from A without a problem, but when I try to go back to A from B, the iPad app crashes. I think the app might have been using too much memory and iOS was forced to kill it...

Hence my question: Does Unity unload gameobjects (and free memory) from the previous scene before changing to another?

Thanks for your help!

I had a similar problem, even loading a blank scene started crashing my game. My problem was i had too many images in the Resources folder(“which I created under assets”). The Resources folder loads everything in it into memory when the game starts. When the game was running the phone memory was getting used up by images that didn’t necessarily need to be in memory all the time.

Hope this helps.

Hi,

Check this answer.

Bye,

Jean