ドキュメント

Unity Engine

Unity Engine

GetMaterial

Gets the current Material assigned to the CanvasRenderer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule

GetMaterial(int)

Gets the current Material assigned to the CanvasRenderer.
public Material GetMaterial(int index)

Parameters

index

The material index to retrieve (0 if this parameter is omitted).

Returns

Type

Description

MaterialResult.

GetMaterial()

Gets the current Material assigned to the CanvasRenderer.
public Material GetMaterial()

Returns

Type

Description

MaterialResult.