文档

Unity Engine

Unity Engine

SetMaterials(List<Material>)

Assigns the shared materials of this renderer using the list of materials provided.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void SetMaterials(List<Material> materials)

Parameters

The list of materials to assign to this renderer.

Remarks

Use this method to set the Renderer.sharedMaterials on this renderer using a list.
Additional Resources: Renderer.sharedMaterials.