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

Prefab only baking/loading one light #68

Closed TheRealEnvist closed 3 months ago

TheRealEnvist commented 3 months ago

When i bake the light BOTH lights get baked but then in runtime only one shows Editor image

Runtime image

EDIT: TO SOLVE THIS ISSUE SWITCH THE LIGTHING MODE TO SUBTRACTIVE

TheRealEnvist commented 3 months ago

Apparently it does not like mixed ligthing only baked.