Disabling Unity's fbx material importer v 2020+

Unity have changed the way unity imports fbx materials
So this method no longer works (or is “obsolete”), and the type is no longer a boolean.

    void OnPreprocessModel()
    {
        ModelImporter importer = assetImporter as ModelImporter;


        importer.importMaterials = false;     //obsolete in 2020.2.5
}

Any ideas? I don’t want to have to deselect tick boxes everytime I import a new fbx if I don’t have to again.

Ignore this, I just used this instead, might be useful for anyone searching for this. :slight_smile:

importer.materialImportMode = ModelImporterMaterialImportMode.None;