Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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!