-2

Hello is there a way to simply create a new scene through script and name it when a new player starts, it’s for a multiplayer game I have brainstorming but this is kinda the starting point for me.

Ike
  • 3
  • 1
  • 1
    [`SceneManager.CreateScene`](https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.CreateScene.html) ... could probably have been found by googling .. as I just did – derHugo May 03 '21 at 06:15

1 Answers1

0

There is the way to make a scene:

 Scene newScene = SceneManager.CreateScene("My New Scene");
joreldraw
  • 1,736
  • 1
  • 14
  • 28
  • Dude, thank you so much. You are a life saver. I don’t know how I didn’t think of that. – Ike May 03 '21 at 13:51
  • Can you sort those scenes into a folder? Also, can you use that line of code in a function? Like Void CreateScene() – Ike May 03 '21 at 13:56
  • If the answer is usefful please mark it as valid. About your new question , yes you can use it in any Unity monobehaviour function. – joreldraw May 03 '21 at 14:37