Question by 
               LeonmFF · Apr 26, 2017 at 03:25 PM · 
                loadlevelload scene  
              
 
              SceneManager.LoadScene problem
Hello,
I need help loading a scene. I have 2 scenes, MainMenu (Build index 0) and MainScene (Build index 1). When I'm at MainScene, and try to load MainMenu, it loads (The name of the scene changes for less than a second) and immediately after it, it loads MainScene again!
I call a function on a button press in MainScene:
 Time.timeScale = 1;
 SceneManager.LoadScene(0);
 pauseMenu.SetActive(false); // pauseMenu has this script.
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
How to fix Loading Screen? 0 Answers
pause menu loads saved game quirky 0 Answers
"next level" is not loading 0 Answers
Loading new scene in unity 2D 0 Answers
How do I Set position when loading a new scene?,How do I set position to an object on load? 0 Answers