Interface: TexturePackerOptions
tasks.TexturePackerOptions
Options for texture packing.
Properties
format
• Optional
format: "png"
| "png8"
| "jpg"
| "webp"
| TextureFormat
Format for the textures. Defaults to png
with default optipng
settings.
maxsize
• Optional
maxsize: Object
Maximum dimensions for the textures. Defaults to 1024 x 1024.
Type declaration
Name | Type |
---|---|
x |
number |
y |
number |
output
• output: string
Output name. Used as a base for the textures and the .json spritesheet.
root
• root: string
Root asset path to calculate the relative paths from.