Skip to content

Format

typescript
Texture.dimension

class: Texture

Description

(Read Only) The dimension type of the texture.

The dimension is an enumeration value that represents the dimension type of the texture. See TextureDimension for details.

Parameters

param_nametypedescription

Return

typedescription
TextureDimensionThe dimension of the texture.

Code Example

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