Skip to content

格式

typescript
Texture.mipmapCount

所属类: Texture

描述

(只读)纹理的Mipmap级别数量。

Mipmap是一种为了在不同距离和角度下提高纹理渲染性能和质量的技术。

参数

参数名类型描述

返回值

类型描述
number纹理的Mipmap级别数量。

代码示例

typescript
let texture = Resources.Load<Texture>(Texture, "textureId");
texture.mipmapCount;