14 return meshRenderer.material;
26 return meshRenderer.materials;
38 return meshRenderer.sharedMaterial;
50 return meshRenderer.sharedMaterials;
static Material[] materialsOfObject(this MeshRenderer meshRenderer)
Returns all the instantiated materials of this object.
static Material[] materialsAsset(this MeshRenderer meshRenderer)
The shared materials of this object.
static Material materialOfObject(this MeshRenderer meshRenderer)
Returns the first instantiated Material assigned to the renderer.
static Material materialAsset(this MeshRenderer meshRenderer)
The shared material of this object.