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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Lighting data getting lost on build

Discussion in 'Global Illumination' started by sandworm, Mar 4, 2022.

  1. sandworm

    sandworm

    Joined:
    Aug 28, 2019
    Posts:
    13
    Hi all, we are experiencing the same issue with both Progressive GPU and Bakery:

    Once baked, the lighting in our scene looks great. Once we build for Android (Quest 2) or reload the scene, the lighting data gets lost and all our textures get scrambled or black. Does anyone know what's going on? This is intermittent, we have a successful build maybe 1 out of 10 tries.

    Anyone seen this issue?
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Which Unity version are you on? Do you have auto generate enabled? Also, are you using Shader Graph materials or custom shaders by chance?
     
  3. sandworm

    sandworm

    Joined:
    Aug 28, 2019
    Posts:
    13
    Turns out it was a Bakery issue. There were duplicate lightmap storage files that had somehow gotten created, and it was causing the lights to get lost.