- Home /
SceneManagement creation of new scene
public void NewNintendo(string sceneName)
{
Scene newScene = SceneManager.CreateScene("Nintendo Switch Game");
SceneManager.LoadScene("Nintendo Switch Game");
}
I have UI buttons to create a new scene though the script so that the player can add elements to it. Problem is that it only creates the new scene in the hierarchy but it does not load it, and it does not have preset elements to the user can input. Example: creates a new note, user is asked on the newly created note" what would you like to write about?"
Good day.
I don't know fs this is possible (At least with basic Unity, i mean maybe some addon or external script can do it)...
When you build the game, you have to configure and select what scenes can be loaded, so, if you create a scene during runtime, it will not be added to the list... so...
Well.. You should go look for some more specifyc code.
Bye!
Your answer
Follow this Question
Related Questions
Callback for when an object is deleted from the scene by the user in EditorMode. 3 Answers
Unity takes forever to load scene 1 Answer
How can I permanently display (`EditorApplication's) current scene name in Editor? 1 Answer
Why does a scene loaded from an Asset Bundle returns empty string when getting its name? 0 Answers
Network - Load For Late Players 1 Answer