# importMaterials

> Import materials from file.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Removed.** importMaterials has been  removed. Use materialImportMode instead.

```csharp
public bool importMaterials { get; }
```

### Remarks

When set to false ModelImporter will use default material (Default-Diffuse.mat) instead of imported materials, otherwise it will find existing or create new materials based on [ModelImporter.materialName](/engine/6000.3/script-reference/unityeditor/modelimporter/materialname.md) and [ModelImporter.materialSearch](/engine/6000.3/script-reference/unityeditor/modelimporter/materialsearch.md) options.

Additional Resources: [ModelImporter.materialName](/engine/6000.3/script-reference/unityeditor/modelimporter/materialname.md), [ModelImporter.materialSearch](/engine/6000.3/script-reference/unityeditor/modelimporter/materialsearch.md) options.
