Version: 2017.1
public void SetMaterial (Material material, int index);
public void SetMaterial (Material material, Texture texture);


material @param material Материал для рендеринга.
texture Material texture overide.
index @param material Материал для рендеринга.


Set the material for the canvas renderer. If a texture is specified then it will be used as the 'MainTex' instead of the material's 'MainTex'. See Also: CanvasRenderer.SetMaterialCount, CanvasRenderer.SetTexture.