>>444
回答になるかどうかわからんですが、一応ぐぐったら
ttps://answers.unity.com/questions/399409/lightmappinghow-do-you-set-the-lightmap-static-fla.html
で「GameObjectUtility」をレファレンスで検索して
ttps://docs.unity3d.com/ja/current/ScriptReference/GameObjectUtility.html
「SetStaticEditorFlags」を見ると
ttps://docs.unity3d.com/ja/current/ScriptReference/StaticEditorFlags.html
があるので、いけるんじゃないでしょうか?