Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSharedMaterials(List<Material>)

Assigns the shared materials of this renderer using the list of materials provided.
Read time 1 minuteLast updated 5 days ago

Definition

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

Parameters

A 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.