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

As I bake new prefab the old lightmaps gets deleted even they are moved in separate folder #55

Open mayurBhagat opened 1 year ago

mayurBhagat commented 1 year ago

Hi, I have game levels as prefab which I need to bake. I baked one prefab(JapanGate) and move generated lightmap to new folder(JapanGateLightmap) after baking prefab. Now if I generate lightmap for second prefab in the same scene old moved lightmap also gets deleted. Do we need to generate lightmap for different prefab in different scene? Do we need to add all scene in build used for lightmap generation ? If it it is so how it can be helpful ?