1,烘焙LightMap
2,让组件有右键Save功能 [ContextMenu("SaveLightMap")]
3,代码设置
render.lightmapIndex = mlightmapIndex; render.lightmapScaleOffset = mlightmapScaleOffset;