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. Dismiss Notice

Question Mesh Renderer Losing Reference to Lightmap

Discussion in 'General Graphics' started by LiquidLink, May 18, 2021.

  1. LiquidLink

    LiquidLink

    Joined:
    Jun 16, 2018
    Posts:
    2
    Hey All,

    I have been having a real issue recently with many of the objects in my scene not properly storing their lightmaps. When I first bake, it looks as expected. However, whenever I remove a scene from the hierarchy, and then add it back, some objects are pitch black and no longer have a reference to the lightmap in their mesh renderer component. I am attaching screenshots of the a mesh renderer component of before/after the scene is removed and then re-added to the hierarchy.

    Before:



    After:



    Since it always happens to the same objects in the scene, my guess was that it may have to do with specific materials, but it is actually most objects that have this problem, and I am not doing anything out of the ordinary with their materials.

    Any help with this is appreciated, thanks!
     
  2. Pourya-MDP

    Pourya-MDP

    Joined:
    May 18, 2017
    Posts:
    143
    hey buddy did you found a solution for this problem?
     
  3. Jave_Lin

    Jave_Lin

    Joined:
    Jan 27, 2014
    Posts:
    4
    I have same problem... :(
    Did you resolve it ?

    My Dev Env:
    OS : windows 10 pro
    Unity Version : 2020.3.37f1
    Pipeline : Builtin Pipeline