Specify sprite sheet spacing options, useful if your sprites are not tightly packed and have space between them.

Hierarchy

  • SpriteSheetSpacingDimensions

Properties

Properties

margin?: {
    x?: number;
    y?: number;
}

The margin between sprites. Default is (0, 0)

Type declaration

  • Optional x?: number
  • Optional y?: number
originOffset?: {
    x?: number;
    y?: number;
}

The starting point to offset and start slicing the sprite sheet from the top left of the image. Default is (0, 0)

Type declaration

  • Optional x?: number
  • Optional y?: number