格式
typescript
RenderTexture.depthType所属类: RenderTexture
描述
(只读)当前渲染纹理的深度缓冲格式。
该方法返回一个枚举类型,详细介绍见DepthType。
参数
| 参数名 | 类型 | 描述 |
|---|
返回值
| 类型 | 描述 |
|---|---|
DepthType | DepthType枚举值 |
代码示例
typescript
function Test() {
try {
let temp_texture = RenderTexture.GetTemporary(100, 100, RenderTextureFormat.Default, DepthType.Depth24Stencil8, AntiAliasingLevel.x8);
} catch (error) {
Debug.Log(error);
}
}