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.materialName

var materialName: ModelImporterMaterialName;
materialName as ModelImporterMaterialName

Description

Material naming setting.

When importing new model Unity will generate material name based on this setting and then it will try to locate existing material with such name, if no such material exists Unity will create a new material by that name. See Also: ModelImporterMaterialName, materialSearch, importMaterials.