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

Doesn't appear to save lightmaps when pressing store prefab lightmaps #23

Closed nneroutsos closed 3 years ago

nneroutsos commented 3 years ago

I tried using that after baking my scene, and then going to assets like the instructions and pressing the bake prefab lightmaps, to no avail since the saved prefab doesnt got the lightmap saved nor does it get applied when i press play on a new scene.

Ayfel commented 3 years ago

So just to make sure, some basic questions, is the script on the parent object in the prefab? Is it marked static for the bake?

nneroutsos commented 3 years ago

Okay i apologize i forgot to mark for static to bake, pardon im closing this issue as it is not needing further help, thanks for taking the time to help me.