Search Unity

Prefab Lightmaps break after loading new scene.

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

  1. MAWMatt

    MAWMatt

    Joined:
    Nov 10, 2016
    Posts:
    18
    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