mredon Game Development Stack Exchange • Recommends
On “How can I create scenes programmatically from a deployed build in Unity?”
…Scene
will be empty. This function is for creating Scenes at runtime. To
create a Scene at edit-time (for example, when making an editor script
or tool which needs to create Scenes), use
EditorSceneManager.NewScene.
You could also use something like this scriptable objects and json example to create both built in and user generated levels:
link to this video…