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.
655 stars 91 forks source link

Why is baking right, but when I save the prefab and then put it in, the prefab is dimmed #29

Closed smallnail21 closed 3 years ago

smallnail21 commented 3 years ago

Why is baking right, but when I save the prefab and then put it in, the prefab is dimmed

Ayfel commented 3 years ago

Mmm, can you share some screenshots and the setup you are using? (Prefabas hierarchy, lights, etc)

smallnail21 commented 3 years ago

I found that the files baked in the scene take away the real-time light map, but the saved preset does not have this option. This should be the reason. But it doesn't matter. I solved the problem by adjusting the light map with PS