Hello all - I got a problem with Unity 5.
I used to bake lightmap and be able to apply the baking on prefab. The lightmap was saved with the prefab. Then, when instantiating a prefab, its lightmap would also instantiate.
Not anymore with Unity 5. Even if a prefab is instantiated, then baked, then prefab saved, it will still be unbaked when re-instantiating …
Anybody ran in the same problem ?
Thx !
Michel
We’re having this problem too, it looks like it’s a known issue though. You can follow it in the issue tracker here:
and vote it up!
Sample code for how to solve this:
http://forum.unity3d.com/threads/problems-with-instantiating-baked-prefabs.324514/
This is by design in Unity 5. Lightmap information was stored in the Scene file, as well as individual Renderers. However, this could cause issues. Therefore, the Lightmap Screenshot now stores all this information. Therefore, you’ll need to manually do this via script.