laurenth-personal / lightmap-switching-tool

Tool that allows switching different baked lightmap sets on a unity scene at runtime.
MIT License
657 stars 88 forks source link

Unable to load lightmaps in Build; working fine in Editor #18

Closed petergraham003 closed 6 years ago

petergraham003 commented 6 years ago

Hi Laurenth,

I have built couple of scenes and baked as per steps provided. They seem to work fine in the Editor. However, when I build the project and test the same, lightmaps are not being loaded while switching from one scene to another.

laurenth-personal commented 6 years ago

Hi @petergraham003, I have built my little example project using unity 2017.3f1 on windows and things worked as expected. Could you provide more info or better provide an example ?

petergraham003 commented 6 years ago

Hi Laurenth, I am able to resolve this issue. It was my bad that I had broke the prefab instance after baking the light. It seems to work somehow in the Editor, but was not loading the lightmaps in the build. All I did was to apply the changes done to the Prefab and bake the light again. It worked!!! Thank You :-)