LoadSpriteOpt:

Sprite loading options.

groupAssets

subgroupTypes

sliceX?: number

If the single image area contains multiple sprites in a grid, how many frames are in the area horizontally.

sliceY?: number

If the single image area contains multiple sprites arranged in a grid, how many frames are in the area vertically.

slice9?: NineSlice

9 slice sprite for proportional scaling.

sincev3000.0

frames?: Quad[]

Individual frames' bounding boxes, if the frames are not in a grid and so sliceX/sliceY won't do. If present, overrides sliceX and sliceY. If the given sprite source is a list of images, each image is its own frame, and this is not used. Format: x, y, w, and h are in **pixels**

sincev3000.0

anims?: SpriteAnims

Animation configuration.

singular?: boolean

If the sprite is a single image.

filter?: TexFilter

The tex filter to use, if different than the global sprite filter

repack?: boolean

If you've already packed your spritesheet, you can set this to false to tell BUILDNANA not to repack it when loading it into the main texture. However, this may negatively impact rendering performance if it causes future sprites to not fit and be moved to a different GPU texture. This doesn't apply if you use singular: true, because the entire image will be its own texture then.

defaulttrue