Version: 2023.1
언어: 한국어
public void SetMaterial (Material material, int index);
public void SetMaterial (Material material, Texture texture);

파라미터

material Material for rendering.
texture Material texture overide.
index Material index.

설명

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.materialCount, CanvasRenderer.SetTexture.