- Home /
The question is answered, right answer was accepted
How To Switch Between Scenes
Hi, how can I switch between scenes? Example: Menu Screen>Click on Play>Pop up with some text>Game .Sorry for my bad English but I'm Italian
Answer by Woltus · Jun 23, 2017 at 02:24 PM
Simply use Scene Manager, e.g.:
SceneManager.LoadScene("MyScene");
Here You can read something more about this topic:
Answer by Linkthehylian04 · Jun 23, 2017 at 02:25 PM
First, make sure that at the top, it says:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
Then, you can use this line of code to load a specific scene based on the scene's index number:
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
Or, you can use this script to load a scene based on the name of a scene:
SceneManager.LoadScene (sceneName:"Put the name of the scene here");
Follow this Question
Related Questions
extract website information to unity project 1 Answer
Get Stats window information (part of it) 1 Answer
Login to Website 0 Answers
How to store informations 1 Answer
Connection between menu and scene 2 Answers