Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

ModelImporter.materialName

public ModelImporterMaterialName materialName;

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.