private ProceduralMaterial[] GetSortedMaterials() { SubstanceImporter importer = this.GetImporter(); ProceduralMaterial[] materials = importer.GetMaterials(); Array.Sort(materials, new SubstanceImporterInspector.SubstanceNameComparer()); return(materials); }