4.3 Error: "Some objects were not cleaned up when closing the scene."

After updating and test running some scenes from my current project in Unity 4.3 i get 2 errors when i stop the play mode in the editor:

Yes, i instantiate an object for scene transitions in OnDestroy() if the last enemie in my game is destroyed.
But this was never an issue in 4.2. And now every time i stop play mode in the editor i end up with the instantiated object in my hierarchy.

I hope this is just a problem that can be fixed.

This pattern can solve that problem:

Not sure why it would show up in 4.3 if not in 4.2.

-SCC

1 Like

Thanks s_guy!

This solved the issue for me.

Maybe it just happened more often in the quickly set up test scenario for 4.3 in my game and i only had bad luck before to just always miss out on it.