- Home /
How to reuse light maps across many levels in game?
Hi,
I am having problem in light mapping textures. I baked textures in unity Free version. When I play game and go to second level light map texture disappear. Anyone has an idea to solve this issue?
Thanks
Answer by screenname_taken · Nov 11, 2014 at 12:46 PM
You bake lightmaps for every level on its own.
I did wonder if there was a way to use a shader with a lightmap attribute and pick the baked maps up per object in the actual object prefabs. Then use these throughout multiple scenes. I have never tried this it is just an idea, one which may be totally wrong...
thanks for reply, i will try. i have tried a lot to solve this issue but could not find good way. i simply baked a cube with shadow in my scene. when i jumped to second scene using application.loadlevel(). lightmaps were gone. i have also applied don't destroyonload on my Cube object so that my cube object were not destroyed for second scene. but it doesn't work for lightmap.
Your answer
![](https://koobas.hobune.stream/wayback/20220613163812im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Do I still need lightmaps? 1 Answer
Black squares on a lightmap 2 Answers
Black squares on the lightmap 0 Answers