- Home /
How can I dynamically create scene ?
Hello,
I have a problem with Unity, because I would create a dynamic scene in the run-time.
Indeed all I have see is Editor.newScene(); but I need to create the scene when the user click on a button in the game.
Does exists a function like instantiate() for scene ?
Otherwise I can copy a example scene and go to it with LoadLevel() but I don't know how copy a scene in run-time.
Thank you.
Comment
Yes is it. Just we need to use the script in a non-editor script. I don't know if I can use Editor.NewScene();
An example maybe ?
Answer by applemaniac · May 20, 2015 at 01:16 PM
Hello, It looks to be your answer here : http://answers.unity3d.com/questions/176667/create-a-new-scene-from-editor-script.html