Skip to content

格式

typescript
RenderTexture.antiAliasing

所属类: RenderTexture

描述

(只读)渲染纹理的抗锯齿水平。

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

参数

参数名类型描述

返回值

类型描述
AntiAliasingLevelAntiAliasingLevel枚举值

代码示例

typescript
function Test() {
    try {
        let temp_texture = RenderTexture.GetTemporary(100, 100, RenderTextureFormat.Default, DepthType.Depth24Stencil8, AntiAliasingLevel.x8);
        // 获取渲染纹理的抗锯齿水平
        let antiAliasing = temp_texture.getAntiAliasing();
    } catch (error) {
        Debug.Log(error);
    }
}