public class MeshRendererWrapper : ComponentWrapper

A mesh renderer.


public int GetMaterialCount()

(Client) Get the amount of materials present on this renderer.

Returns: (int) The amount of materials.


public MaterialResource GetMaterial(int index)

(Client) Get the material from this renderer at a specified index.

Arguments

Returns: (Material) The material.


public void SetMaterial(int index, MaterialResource material)

(Client) Set the material on this renderer at a specified index.

Arguments


public bool GetCastsShadows()

(Client) Get whether this renderer casts a shadow.

Returns: (bool) True if it casts, false if it doesn't.


public void SetCastsShadows(bool casts)

(Client) Set whether this renderer casts a shadow.

Arguments