Restore scene by adding stored objects

by Neph   Last Updated April 16, 2018 12:13 PM - source

My game has a bunch of GameObjects that I created with code at runtime and that I "store" in an array in a static class.

When I unload the scene and load it again, these objects are gone (of course). Is there a way to add the objects I store in the array back to the scene, so I don't have to create them again every time the player opens the options menu?

According to a bunch of old threads you weren't able to save a whole scene (including all of the scene objects and their locations) and restore it again later in Unity 5. Now that Unity 2017 is out, is that still the case or can you actually load previous scenes again (how would you do that)?

Related Questions