Hi, I created 3 scenes on a unity project, how do I divide them? In the sense that when I start the play I must first activate the menu scene (1 scene), then the character selection scene (2 scenes) and then the game (3 scenes).
Right now when I click on play I load all three scenes at the same time and I do not know why
-
You must add your scene to build Build Settings. (File → Build Settings → Scenes In Build).
-
The very first scene in your build settings is scene which will start when you open the app.
-
If you want to open new scene, do it like this:
using UnityEngine.SceneManagement; public void OpenMenuScene() { SceneManager.LoadScene("name_in_build_settings"); }
The parameter of the function must be the same as the name of the scene.