Skip to content

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.

SheetGrid

number

object

uvOffset: object

x: number

y: number

uvScale: object

x: number

y: number