Lightmap index data is constantly lost

We constantly have an issue where lightmaps don’t appear in the editor or the game.

Whenever this happens I can see in the editor that the lightmaps are still being loaded, but the ‘lightmapIndex’ value is set to -1 for all renderers, so the scene appears unlit.

I believe we’re properly adding all relevant files to source control. We source control the scene file, the LightingData.asset file, all files in ProjectSettings, and all the .meta files for each asset. Is there something I’m missing?

Right now we’re forced to work without lightmaps most of the time, and we rebake them before doing a release. Hardly an ideal scenario.

Still looking for an answer to this one…

same thing here…

Got it.
Uncheck auto generate on machine A. This will generate a LightingData.asset file in the scene subfolder when you press Generate lighting
Commit.
Pull on machine B.
In the Lighting > Global maps window , set the LightingData.asset that was generated on machine A
Save
Close scence
Reopen scene

1 Like