Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Light baking on scene change

Discussion in 'General Graphics' started by emilykiny62, Jan 18, 2021.

  1. emilykiny62

    emilykiny62

    Joined:
    Jan 18, 2021
    Posts:
    1
    I baked lighting into some of my objects and it looks fine in the scene and game view in Editor. But when I hit "Play", all the baked lighting is gone!

    I debugged it and narrowed the problem down: When my scene "scene1" starts, I instantly call SceneManager.LoadScene() to load my "PersistentScene" which contains objects I need in every scene. Then in "PersistentScene" I load "scene1" additively: SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive)

    And it seems like this removes all the baked lighting!

    Anyone knows what I can do to keep my baked lighting even with this scene switching?
    appvalley
     
    Last edited: Jan 20, 2021
unityunity