Format
typescript
Texture.dimensionclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
TextureDimension | The dimension of the texture. |
Code Example
typescript
let texture = Resources.Load<Texture>(Texture, "textureId");
texture.dimension;