public static void ShowWindow(EnvironmentalPainter painter, int prefabIndex)
        {
            DistributionMapExporterGUI window = GetWindow <DistributionMapExporterGUI>();

            window.painter      = painter;
            window.prefab       = painter.Settings.GetPrefabs()[prefabIndex];
            window.titleContent = new GUIContent("Distribution Map Exporter");
            window.fileName     = string.Format("{0}-{1}-{2}", window.painter.Terrain.name, window.prefab.name, "DistributionMap");
            window.ShowUtility();
        }
 private static void ExportDistributionMapContextHandler(TerrainGenerator instance, int i)
 {
     DistributionMapExporterGUI.ShowWindow(instance.EnvironmentalPainter, i);
 }