How to bake lightmap on same object with multiple materials

I’m doing an architectural visualization and I would like to be able to change the material of a sofa when I hit the “C” button. I used “Set material function” to do this job and I’m able to that in the game.
The problem is here:
When I hit play and change materials, the Lightmap is only baked for the first default material. I tried to use “dynamic lighting” and “movable” mesh options but none of these worked.
Is there an option to bake multiple materials on same object so when I change it during game they would be baked.
Or I should maybe have copies of same object in the same place and change the visibility of them each time I want to change materials?

Have a similar use-case here where I would like retain the baked light effect while changing materials during gameplay (more specifically I’m creating dynamic material instances and applying them at spawn).

Did you ever find an answer?