Skip to content

格式

typescript
RenderTexture.depthType

所属类: RenderTexture

描述

(只读)当前渲染纹理的深度缓冲格式。

该方法返回一个枚举类型,详细介绍见DepthType

参数

参数名类型描述

返回值

类型描述
DepthTypeDepthType枚举值

代码示例

typescript
function Test() {
    try {
        let temp_texture = RenderTexture.GetTemporary(100, 100, RenderTextureFormat.Default, DepthType.Depth24Stencil8, AntiAliasingLevel.x8);
    } catch (error) {
        Debug.Log(error);
    }
}