跳转到内容

uvRectFromPixels

此内容尚不支持你的语言。

uvRectFromPixels(rect, textureWidth, textureHeight): UvRect

Defined in: sdk/src/render/uvRect.ts:25

The UV window of a pixel rectangle in a

number

number

number

number

number

number

UvRect

textureWidth x

textureHeight picture, the rectangle’s

y measured DOWN from the top edge as image tools measure it. Spread the result into a Sprite to show exactly that cell.