Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BasedOnTextureName_Or_ModelNameAndMaterialName

\<textureName\>.mat or \<modelFileName\>-\<materialName\>.mat material name.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. You should use ModelImporterMaterialName.BasedOnTextureName instead, because it it less complicated and behaves in more consistent way.
BasedOnTextureName_Or_ModelNameAndMaterialName = 3

Remarks

Name materials \<textureName\>.mat (i.e. diffuse texture name of imported material) when searching for existing or creating new materials. If material doesn't have a texture or texture doesn't exist in Unity project folder in one of Textures folders, then material will be named \<modelFileName\>-\<materialName\>.mat instead. This option has behaviour compatible with Unity 3.4 and earlier versions. Additional Resources: ModelImporter.materialName.