uvRectFromPixels
uvRectFromPixels(
rect,textureWidth,textureHeight):UvRect
Defined in: sdk/src/render/uvRect.ts:25
The UV window of a pixel rectangle in a
Parameters
Section titled “Parameters”height
Section titled “height”number
number
number
number
textureWidth
Section titled “textureWidth”number
textureHeight
Section titled “textureHeight”number
Returns
Section titled “Returns”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.