Skip to content

Format

typescript
Texture.texelSize

class: Texture

Description

The size of each pixel in the texture. Read-only.

Parameters

param_nametypedescription

Return

typedescription
Vector2The size of each pixel in the texture.

Code Example

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