Format
typescript
Texture.texelSizeclass: Texture
Description
The size of each pixel in the texture. Read-only.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector2 | The size of each pixel in the texture. |
Code Example
typescript
let texture = Resources.Load<Texture>(Texture, "textureId");
texture.texelSize;