- Home /
Save game state as it's own scene to edit
I have a game where I would like to have a randomized cityscape of different size buildings. I currently have a system in place that generates all of the buildings at run-time. However, I don't need a different cityscape every time the game is run, and this is preventing me from using occlusion culling and is very inefficient when the game starts up. Is there a way I can save the current game state into it's own scene so that I can then edit that? That way I can generate the cityscape and then save it to bake in culling.
Is there anything stopping you from just generating the scene in an editor script? You can also set 'Random.seed' before generating the level, which if you are careful should prevent the scene from generating differently every run. Which means you could generate the scene in the editor, do all the occulsion-culling baking and so on that you need to do, and then delete the city to save space- re-generate it at runtime!
I have no idea how to make an editor script, but that sounds like it would work the best. I'll look into it, thanks :)