Format
typescript
Texture.mipmapCountclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The number of Mipmap levels in the texture. |
Code Example
typescript
let texture = Resources.Load<Texture>(Texture, "textureId");
texture.mipmapCount;