Frame-rect on the texture. This is likely to be trimmed array. To get width/height of the frame as it was defined in the graphics program see sourceRect.width/height.
The pivot for the frame, calculated in a way that works on the texture during rendering.
Mostly for debugging to understand where the frame is from.
The rectangle on the source (as defined in the graphics program). For the developers mental model this is likely the width/height one expects. However, for shading/rendering use textureRect's values.
Original pivot on the source.
Readonly
sourceMostly for debugging to understand where the frame is from.
Readonly
sourceOriginal pivot on the source.
Readonly
sourceThe rectangle on the source (as defined in the graphics program). For the developers mental model this is likely the width/height one expects. However, for shading/rendering use textureRect's values.
Readonly
textureThe texture used for rendering.
Owned by parent's SpriteSheet.
Readonly
textureThe pivot for the frame, calculated in a way that works on the texture during rendering.
Readonly
textureFrame-rect on the texture. This is likely to be trimmed array. To get width/height of the frame as it was defined in the graphics program see sourceRect.width/height.
Static
createUtility function to quickly create a list of SpriteSheetFrames from a packed texture for demos.
💡 Create proper SpritSheets check FIX: website LINK
SpriteSheet
in pixel
in pixel
rotation/scale anchir X in pixel
rotation/scale anchir Y in pixel
spacing between frames. only between frames (compatible with Aseprite export).
top/left/right/bottom border space (compatible with Aseprite export).
manually set number of frames in a row
manually set number of frames in a column
Static
createUtility function to quickly create a single SpriteSheetFrame.
💡 Create proper SpritSheets check FIX: website LINK
SpriteSheet
Optional
frameX: numberOptional
frameY: numberOptional
frameW: numberOptional
frameH: numberOptional
pivotX: numberOptional
pivotY: numberGenerated using TypeDoc
The texture used for rendering.
Owned by parent's SpriteSheet.