public static void ShowWindow()
        {
            TextureExporterGUI window = GetWindow <TextureExporterGUI>();

            window.titleContent = new GUIContent("Texture Exporter");
            window.Show();
        }
        public static void ShowWindow(TerrainGenerator terrain, TextureExporter.TextureType type)
        {
            TextureExporterGUI window = GetWindow <TextureExporterGUI>();

            window.titleContent     = new GUIContent("Texture Exporter");
            window.source           = TextureExporter.Source.FromMeshFilter;
            window.targetMeshFilter = terrain.MeshFilterComponent;
            window.fileName         = string.Format("{0}-{1}", terrain.name, type.ToString());
            window.textureType      = type;
            window.Show();
        }