Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ModelImporter.importMaterials

var importMaterials: bool;
bool importMaterials;
importMaterials as bool

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.