XML Generated Level with GI

This is just something I’ve been thinking about, not super urgent or anything, but I thought I’d ask.

Suppose you were building a level editor outside of Unity which exported level data as an XML file or something similar. Its not random or generated, you have a concrete representation of the scene that would be instantiated at runtime. How would you go about baking/precomputing GI?

As soon as I posted this, I thought of one potential solution (Always takes asking the question to find the answer right?).

You could just have a script in your scene that instantiates the level in editor, and use that for baking/precomputation. Whenever the editor Update function is called, it just checks to see if the last generate time is less recent than the save time of the XML file, and updates if it needs to, recomputing lighting in the process.