Format
typescript
Texture.heightclass: Texture
Description
(Read Only) The height of the texture in pixels.
The height of the texture represents the number of pixels in the vertical direction.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The height of the texture. |
Code Example
typescript
let texture = Resources.Load<Texture>(Texture, "textureId");
texture.height;