ModelImporter.importMaterials Manual     Reference     Scripting  
Scripting > Editor Classes > ModelImporter
ModelImporter.importMaterials

var importMaterials : boolean

Description

Import materials from file.

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 materialName and materialSearch options. See Also: materialName, materialSearch options.