- Home /
Question by
jfonz001 · Nov 02, 2019 at 12:06 AM ·
level load
I am loading two scenes in an object that is destroyed when the first scene loads, yet the second scene still loads...why does this work?
The following is called in an object that is destroyed by loading the scene "NeverUnload", however the second additive scene loads just fine:
public void NewGame(string defaultScene)
{
SceneManager.LoadScene("NeverUnload", LoadSceneMode.Additive);
SceneManager.LoadSceneAsync(defaultScene, LoadSceneMode.Additive);
}
Does unity allow this method to finish before destroying the object? Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612214215im_/https://answers.unity.com/themes/thub/images/avi.jpg)