Ayfel / PrefabLightmapping

Script for saving lightmapping data to prefabs. Used through the Assets tab in Unity. Place your prefbas in the scene with this script at the root. Set up your lighting and in the editor go to Assets->Bake Prefab Lightmaps. After is processed you can now spawn your prefabs in different scenes and they will use the lightmapping from the original scene.
618 stars 88 forks source link

Lightmap breaks in the build on a single prefab #60

Open Liska333 opened 1 year ago

Liska333 commented 1 year ago

Hello, We have been using PrefabLightmapping for several months on a VR project. Since yesterday evening we have a prefab (among 2) on which the Lightmaps jump to the build. It is a prefab that is not instantiated, and that is disable at Play then Enable on an Event. The other prefab has exactly the same setting but keeps its lightmaps in the build. In the Android log we have this error.

If this error tells you something I'll be extremely happy, especially since we have to make a first release in the next few days!

Thanks to you,

LogError

Ayfel commented 1 year ago

It looks like some reference is missing, either a renderer or a lightmap for this prefab. I would try to rebake that specific prefab again in a new scene so you don't lose any others you might have made before.