Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Missing Lightmaps in Prefab

Discussion in 'iOS and tvOS' started by eco_bach, Apr 22, 2019.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Have a problem that is driving me crazy. Using the LWRP and Baked lightmaps. Everything looks fine after baking in the editor.
    But after deploying to my iPhone I seem to be missing most of my lightmaps!

    Update
    After some digging I think the issue has to be with baking lightmaps in Prefabs.
    https://forum.unity.com/threads/problems-with-instantiating-baked-prefabs.324514/page-8#post-3608388

    If I simple do a bake, update my Prefab, then drag the Prefab back into my Scene view my lightmaps are missing!

    Please tell me this has been resolved in 2019!
    Has someone resolved this 100% in 2018.3 and greater builds?

    The attached below shows a screen grab after deploy and the same view in the editor before deploying.

    Deployed_bakedLightmaps.png Editor_bakedLightmaps.PNG
     
    Last edited: Apr 22, 2019
  2. VivienS

    VivienS

    Joined:
    Mar 25, 2010
    Posts:
    24
    Have you tried manually including the lightmap shaders in the build?

    Not sure if this works in LWRP the same as it does in the standard pipeline, but I had a problem in 2019.2/Android that looked exactly like this and this solution worked for me:
    Went to Edit > Project Settings > Quality > Graphics, scrolled down to Lightmap Modes and made sure Baked Subtractive (which I was using in my Scene) was included in the build and voilà, there was my Prefab Lightmap on Android.

    Source: https://forum.unity.com/threads/problems-with-instantiating-baked-prefabs.324514/#post-2179832
     
  3. AurimasA

    AurimasA

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    24
    Hi @eco_bach , have you tried what @VivienS has suggested? Could you test on the latest Unity 2018.4 version, which you can find here: https://unity3d.com/get-unity/download/archive If you are still experiencing the issue, please submit a bug report with a minimal project that showcases the issue and reply the bug ID here.