Skip to content

Format

typescript
Texture.mipmapCount

class: Texture

Description

(Read Only) The number of Mipmap levels in the texture.

Mipmaps are a technique used to improve texture rendering performance and quality at different distances and angles.

Parameters

param_nametypedescription

Return

typedescription
numberThe number of Mipmap levels in the texture.

Code Example

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