文档

Unity Engine

Unity Engine

importMaterials

Import materials from file.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Removed. importMaterials has been removed. Use materialImportMode instead.
public bool importMaterials { get; }

Remarks

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 ModelImporter.materialName and ModelImporter.materialSearch options.