Search Unity

  1. Unity 2020.1 has been released.
    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

Prefab Lightmaps break after loading new scene.

Discussion in 'Prefabs' started by MAWMatt, Sep 2, 2019.

  1. MAWMatt

    MAWMatt

    Joined:
    Nov 10, 2016
    Posts:
    25
    Hi folks,

    So I'm using that script that's been circulating for years that allows the baking of lightmaps into prefabs. It seems to work great, until I load into another scene and then back to my menu scene (the prefab isn't unloaded between these scene loads).

    So initially the lighting is correct:


    Once I load into a gameplay scene, play the level and return to the menu, the prefab lighting is completely broken:


    I'd really prefer not to have to unload and load the prefab every time I have a scene change. Is there a way around that (assuming that would even work in the first place).

    Thanks for the help folks, hopefully I'm not alone in seeing this!
    -Matt
     
unityunity