I have 3 static objects in the scene that the user can disable/enable during runtime. Only one can be active at the same time since they are on top of each other.
The scenario is a 3D map with 3 different situations which the user can switch between. The situations only change a part of the map.
I assume you are talking about baking lightmaps?
If so, Unity has no built-in way to dynamically bake lightmaps at runtime. There are probably assets available on the store if it absolutely must be dynamic. On the other hand if you know at edit-time where the objects will be and the user is only going to be enabling or disabling them you can bake several static light maps in the editor and then assign one of them at runtime based on your needs.Try searching something like ‘dynamically change lightmaps + Unity’ in google. Here’s one post from my own search [Solved] Changing lightmap at runtime? This method is a bit tricky since the editor isn’t naturally setup to work this way. The final option you can consider is to use some kind of global illumination that will dynamically adjust lighting conditions based on geometry. This is probably not a good option if you plan to release on mobile. Also, I have no idea what the state of Unity’s GI system is these days (I haven’t looked at it in years) but last I checked it was pre-computed so if you wanted it to work in realtime it was necessary to use something else. Again, the asset store has you covered there.