Closed Fronkln closed 5 years ago
Yeah, its unity bug. It will always reset if shadows wasn't baked by unity. Solution: import lightmap to jpg/png/exr and apply it using "LightmapSettings" through script.
Yeah, its unity bug. It will always reset if shadows wasn't baked by unity. Solution: import lightmap to jpg/png/exr and apply it using "LightmapSettings" through script.
I converted it into a png image and loaded it today but it still wouldnt apply even though its at baked lightmaps list probably something specific needs to be done before it works properly
The lightmap image that i used (city_test09.bsp)
I created this script to apply them. https://pastebin.com/sfmLsL4f I hope it will work.
I created this script to apply them. https://pastebin.com/sfmLsL4f I hope it will work.
Works perfectly, perhaps we should start integrating this into bsp loading itself that works when the app starts?
Self explanatory, if the map was loaded from editor with the "Load" button the generated lightmap texture will disappear on play mode