Skip to content

格式

typescript
Texture.texelSize

所属类: Texture

描述

纹理中每个像素的大小。 只读

参数

参数名类型描述

返回值

类型描述
Vector2纹理中每个像素的大小。

代码示例

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