Where does UE store the lightmaps?

I’m currently working on a project where i have several objects that i can toggle between, these objects are moveable so i can’t build the lightmaps for them.

My idea was to put them as static, build the lightmaps and save the lightmap as an image to use in the material.
But i cannot find the lightmap files anywhere.

Any ideas how i can get to them?

Thanks.

You can force a dynamic object to render lightmaps, I believe it’s in the actor lightmass properties.

The lightmaps I believe are stored within the level file, and to get them to render properly you need to use the lighting system how it’s designed.

You mean the “Light as Static” checkbox?
Ticked that but it doesn’t seem to affect the objects.

The situation i have is like this.
On start event the objects get spawned, and in game i can swap them out for other objects. I do this by removing the actor and spawning another.

If i understand you correctly, it is impossible to get to the lightmap files?

It can’t build lightmaps for things that aren’t in the scene, so if you place the object when the level starts then there’s no way for it to get lightmaps.

Yes, i’m aware of that.
That’s why i put the objects in temporary to build the lightmaps. And the plan was to save the lightmap to a file to apply it as a texture later on.