- Home /
Question by
KateLastimosa · Nov 10, 2017 at 01:54 PM ·
scenescene-loadingscene-switchingscene-change
Multiple Scenes: Are previous scenes still active after you call a new scene?
The first scene is called "Level1". When the player finishes at that scene, it calls the second scene called "Level 2". I use this code to call level2,
SceneManager.LoadScene(sceneIndex + 1);
I want to know if the scene "Level1" still runs in the background while "Level2" is running. If it is, is there another way I could call level2 or stop the previous scene from playing? Because when I'm at level2, it becomes laggy. Please help meeee....
Comment
Best Answer
Answer by NickJVaccaro · Nov 10, 2017 at 03:42 PM
If you are using SceneManager.LoadScene with only 1 parameter, then Level1 is completely unloaded and only Level2 is running. If it's laggy it may be for something else, try using the profiler to get to the root cause.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142647im_/https://answers.unity.com/themes/thub/images/avi.jpg)