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.
When i bake the light BOTH lights get baked but then in runtime only one shows Editor![image](https://github.com/Ayfel/PrefabLightmapping/assets/137974409/3142af65-cef8-427f-a5b4-fdc0b0541c48)
Runtime![image](https://github.com/Ayfel/PrefabLightmapping/assets/137974409/85d5bf67-045b-4e59-aba6-4ef83d2ca9c9)
EDIT: TO SOLVE THIS ISSUE SWITCH THE LIGTHING MODE TO SUBTRACTIVE