Run-time lightmap generating for procedural terrain

Hi,

I'm generating terrain procedurally, and wanting to then generate a lightmap for it. I notice there is API in unityeditor for this, is there any way to use this functionality at run-time via unityengine? Or is it a case that I will have to roll my own lightmap generator?

Thanks.

Unity editor functionality is only available in the editor, otherwise runtimes would be substantially larger.