Skip to content

Format

typescript
Texture.height

class: 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_nametypedescription

Return

typedescription
numberThe height of the texture.

Code Example

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