Skip to content

Format

typescript
Texture.GenerateMipmaps()

class: Texture

Description

Generate mipmap.

Parameters

param_nametypedescription

Return

typedescription
booleanWhether the generation is successful.

Code Example

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