Bake Scene in a Script?

Is it possible to bake the scene inside of a c# script? I have a world that uses a very basic procedural generation to create a map. I want to use light mapping, but I don’t see a way to bake the scene after it is generated. I cannot bake the scene before it exists (obviously). Is there a completely different way of doing this?

You cannot bake lighting or navmeshes at runtime.

Well, is there any way around this? I am going to have many lights but I do not want to use vertex lighting.

I haven’t find anything particularly promising, would be interested to hear what others using procedural generators for their maps are doing about lighting this regard.

Yeah, I have had no luck in searching either.

Anyone out there who has their own way of doing this?