Multiple scene baked GI for level variations

I would like to do something like the following using multiple scenes:

  • Create one “shared” scene with N other scenes that combine to make variations on levels. Let’s say we have DungeonShared along with DungeonLayout1 and DungeonLayout2 that load additively to the shared stuff to make a complete level.

  • Load the combined scene of DungeonShared + DungeonLayout1 and bake this.

  • Bake DungeonShared + DungeonLayout2 into a different LightmapDataAsset in the same manner.

  • At runtime, be able to load each combination with the correct light maps (ideally without loading a set of lightmaps with the shared scene that are not going to actually be used)

Right now, baking one scene combination trashes the data for the other, even if I unassociate the shared scene’s lighting data before baking and then try to reapply the correct lightmaps in LightmapSettings at runtime.

(If there were support for nested prefabs, I could probably solve this without multiple scenes, but that’s been “coming in the next version” for years now, so I’m not holding my breath.)

So is there a workable option to achieve this workflow?

Hey Skittlebrau,

which version of Unity are you currently running? There have been several bugfixes in the last three releases which addressed problems with multi-scene baking.

Cheers

5.3.4f1

I’ve also tried with the 5.4.0 beta as well and still do not see an obvious way to achieve this workflow. If it’s just not possible, that would be useful to know as well.