how to load lightmap?

I made a test scene with lightmap. I put everything in the scene to a prefab and made it an asset.
In an empty level, I load the prefab dymacally,everything works well except the lightmap.I search for the whole user manual and forms but no answer yet.Anyone could help?
Thx:)

From what I understand you need to export a model rendered with its lightmap, right?
If that’s the case, I think it will never work: lightmaps are bound to MAPS, not to prefabs.
This means that a static object will have different UV depending on which map it will be imported.
So, I think that you really can’t export lightmaps based on objects… but you can probably export an entire map with its objects and lightmaps.
But the person who will receive the package and will take the prefab and drop it onto another map will have to rerender lightmaps for that map anyway.

A work around for this thing could be that once you rendered your lightmap you duplicate it somewhere, and change the shader of your object with one of the “legacy” shaders, with lightmapped feature: there you set your main texture and the lightmap texture but those shaders are quite basic.
More, when you import your object somewere of course the lightmap is not going to change in any way: it will be a totally static texture of the object.