sheetCellUv
sheetCellUv(
grid,cell):object
Defined in: asset/sheetGrid.ts:79
UV window of a cell — exactly what Sprite.uvOffset / Sprite.uvScale take.
Y is flipped: a sheet is addressed from its top-left, UV space runs from the bottom, so cell 0 carries the HIGHEST v. That is the one thing here that reads as wrong in an inspector until you remember which way an image is stored.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”object
uvOffset
Section titled “uvOffset”uvOffset:
object
uvOffset.x
Section titled “uvOffset.x”x:
number
uvOffset.y
Section titled “uvOffset.y”y:
number
uvScale
Section titled “uvScale”uvScale:
object
uvScale.x
Section titled “uvScale.x”x:
number
uvScale.y
Section titled “uvScale.y”y:
number