OnAssignMaterialModel(Material, Renderer)
Feeds a source material.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
OnAssignMaterialModel()
public void OnAssignMaterialModel(Material material, Renderer renderer)
Parameters
Remarks
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 is generated directly from the model before importing and will be destroyed immediately after OnAssignMaterial.
sourceMaterial