- Home /
How to dynamically create a scene and save
Hi all.
I have a script that generates the objects in the scene via the OnEnable() method. After this the game plays fine. However I have a retry function that I am trying to make work. My issue is that just simply I cannot simply use the SceneManager.LoadScene() to restart the scene as every thing is regenerated.
I would like to know: 1. is there a way to save the scene after the generation is done. 2. How can i reload this saved scene without the regeneration happening again.
Thanks in advance.
I would probably save the data that describes how the scene was generated, and then use it to regenerate.
Your answer
![](https://koobas.hobune.stream/wayback/20220612055026im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
World building based on "model scenes" 1 Answer
How can I generate a scene from a photo in realtime 0 Answers
Randomly select a scene 1 Answer
Exceptions When Changing Scenes 2 Answers