기술 자료

Unity Engine

Unity Engine

BasedOnTextureName_Or_ModelNameAndMaterialName

\<textureName\>.mat or \<modelFileName\>-\<materialName\>.mat material name.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
경고
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.