public void OnGUI(Rect position) { InitSettings(); m_LightmapSettings.Update(); LightmapData[] lightmaps = LightmapSettings.lightmaps; VisualisationGITexture[] realtimeLightmaps = LightmapVisualizationUtility.GetRealtimeGITextures(GITextureType.Irradiance); LightmapListGUI(lightmaps, realtimeLightmaps); }