Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

AssetPostprocessor.OnAssignMaterialModel(Material,Renderer)

Description

Feeds a source material.

The returned material will be assigned to the renderer. If you return null, Unity will use its default material finding / generation method to assign a material. The sourceMaterial is generated directly from the model before importing and will be destroyed immediately after OnAssignMaterial.

no example available in C#
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答