Page 1 of 1

Some objects were not cleaned up when...

Posted: Sun Mar 03, 2019 5:43 pm
by dlevel
So I get the following error when I stop play in editor mode.

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
Save System

it's something I need to do but I cant figure out what :)

Re: Some objects were not cleaned up when...

Posted: Sun Mar 03, 2019 6:50 pm
by Tony Li
Make sure your Save System has a data serializer (e.g., JsonDataSerializer) and a saved game data storer (e.g., PlayerPrefsSavedGameDataStorer). Otherwise the Save System will create them (unnecessarily, really) to do final cleanup when exiting play mode.

I've added some automatic cleanup in the next update, so you can just ignore the message for now if you want to wait for the update instead.

Re: Some objects were not cleaned up when...

Posted: Mon Mar 04, 2019 9:50 am
by dlevel
awesome once again :)