The 2D layer · function
sheetFrameWidth
A frame's width in texels, or 0 for an index the sheet does not have.
Explained in Sprites and tilemaps.
function sheetFrameWidth(sheet: SpriteSheet, index: number): numberimport { sheetFrameWidth } from '@driftengine/ui2d';Parameters
| Parameter | Type | Description |
|---|---|---|
sheet | SpriteSheet | |
index | number |