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.
645 stars 90 forks source link

lightmaps in the build aren't mapped correctly #61

Open meedo2009 opened 1 year ago

meedo2009 commented 1 year ago

so i basically have a game where prefabs get put into "modules" that give the prefabs rules so that i can randomly generate them, this is how it looks like if i generate in the editor or if i generate before building: Screenshot (16) and this is how it looks if i generate in the build using that button in the corner: Screenshot (17) i have looked in similar issues and none of the fixes worked for me, i even tried to completlly disable static batching which didn't work Note that im using probuilder becuse not doing so is super time conuming

Ayfel commented 1 year ago

I saw your message in the other issue. For probuilder to work properly with prefabs you need to save meshes to disk (a.k.a go from a probuilder dynamic object to a regular mesh)

meedo2009 commented 1 year ago

thank you so much, and sorry for asking twice, i just really needed help