- Home /
Create a scene from script
Hello there, I need to be able to create a new scene and define the game objects for it at a Editor script.
How could I do this?
Thanks.
Comment
Best Answer
Answer by ptr0x · Apr 13, 2015 at 03:27 PM
Sorry people, I did not search before ask here, sorry again.
For those seeking the same question, you can use the methods EditorApplication.NewScene and EditorApplication.SaveScene.
Answer by hexagonius · Apr 13, 2015 at 03:29 PM
Look this up. Scene are created with YAML and here is the docs to it:
Dude, you made my day happier =] I was concerned about how i would accomplish that.
The name of the page has changed, here is the equivalent page in the 2017 docs...
https://docs.unity3d.com/$$anonymous$$anual/TextSceneFormat.html