Parameters
| material | Material for rendering. | |
| texture | Material texture overide. | |
| index | Material index. |
Description 描述
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.