public void ReimportSubstances()
{
string[] strArray = new string[base.targets.GetLength(0)];
int num = 0;
foreach (ProceduralMaterial material in base.targets)
{
strArray[num++] = AssetDatabase.GetAssetPath(material);
}
for (int i = 0; i < num; i++)
{
SubstanceImporter atPath = AssetImporter.GetAtPath(strArray[i]) as SubstanceImporter;
if ((atPath != null) && EditorUtility.IsDirty(atPath.GetInstanceID()))
{
AssetDatabase.ImportAsset(strArray[i], ImportAssetOptions.ForceUncompressedImport);
}
}
}