Why is "allowSceneActivation" being set to false when unloading scenes in LevelStreamingManager? #75
Unanswered
cobaltBlue73
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've decided to use gameplay ingredients as a base to write my own framework for my own games. While looking through the LevelStreamingManager code I noticed you were setting allowSceneActivation to false when unloading scenes.
At line 230 in the method UnloadLevelCoroutine in LevelStreamingManager.cs:
asyncOperations[i] = SceneManager.UnloadSceneAsync(sceneNames[i]); asyncOperations[i].allowSceneActivation = false; // <= Why?
I've tried looking through Unity's documentation and other examples but I can't find any other examples of people doing this...
Is there a particular reason for doing this?
Beta Was this translation helpful? Give feedback.
All reactions