ScriptReference/SceneManagement.SceneManager.LoadScene #267
Replies: 1 comment
-
|
When loading a scene additively, the light settings (skybox, fog, etc) might conflict... to tell Unity which scene settings to use, use SceneManager.SetActiveScene (but wait at least one frame after loading the scene before setting it to be the active scene)... for more info, see this Catlike Coding tutorial IEnumerator LoadLevel () {
SceneManager.LoadScene("Level 1", LoadSceneMode.Additive);
yield return null;
SceneManager.SetActiveScene(SceneManager.GetSceneByName("Level 1"));
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/SceneManagement.SceneManager.LoadScene
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadScene.html
Beta Was this translation helpful? Give feedback.
All reactions