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
The material index to retrieve (0 if this parameter is omitted).
Returns
Type | Description |
|---|---|
| Material | Result. |
GetMaterial()
Gets the current Material assigned to the CanvasRenderer.
public Material GetMaterial()
Returns
Type | Description |
|---|---|
| Material | Result. |