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

Does this work with AssetBundles? #34

Closed Nolkeg closed 3 years ago

Nolkeg commented 3 years ago

I managed my prefabs in another Unity project and build them to assetbundle to use in the main project. Does my workflow compatible with this script?

Ayfel commented 3 years ago

Yes, I use this with assetbundles myself, you need to use the same setting for lightmap encoding quality in both projects I believe, in projectsettings (at least in some mobile platforms)

https://docs.unity3d.com/Manual/Lightmaps-TechnicalInformation.html

Nolkeg commented 3 years ago

Thanks