Search Unity

Lighting only changes on the first scene load?

Discussion in 'Editor & General Support' started by TruffelsAndOranges, Jan 9, 2016.

  1. TruffelsAndOranges

    TruffelsAndOranges

    Joined:
    Nov 9, 2014
    Posts:
    92
    I use "UnityEngine.SceneManagement.SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);" to load new scenes. However, LoadSceneAsync ONLY changes lighting the first time I call the method. Is this a bug? Or am I using the SceneManager wrong? Is there any way to "set" which loads that should load the lighting too?
     
  2. TruffelsAndOranges

    TruffelsAndOranges

    Joined:
    Nov 9, 2014
    Posts:
    92
    Managed to fix the problem by finding out that when running the game in the editor one should use the UnityEditor.SceneManagement.EditorSceneManager to load and activate scenes instead. ^_^ Hope this can help someone else!