I’m creating plugin that does offline generation on maps.
So I’m loading world, doing some work on it, mainly placing assets, and then I want to save it, close it, and open another one.
Problem is that those worlds don’t get garbage collected and I run out of memory after few.
I assumed that calling
would be enough. It wasn’t.
I tried marking world and package from which it’s loaded with
I cleared them standalone flags by hand
I even tried calling
on them and all objects that have them as outer collected from
I think I’m missing something. It surely is possible as I can load level and unload it in editor UI and world is properly cleaned(I check with memreport)