@blooper.gg/toodle / textures/types / AtlasBundleOpts
Type Alias: AtlasBundleOpts
AtlasBundleOpts =
object
Defined in: textures/types.ts:113
Bundle options for registering pre-generated texture atlases
Properties
atlases
atlases:
AtlasDef
[]
Defined in: textures/types.ts:132
atlas definitions as pregenerated by a texture packer like https://github.com/pixijs/assetpack
Example
ts
[
{
json: new URL('https://example.com/atlas.json'),
},
{
png: new URL('https://example.com/atlas.png'),
},
{
json: new URL('https://example.com/metadata/atlas.json'),
png: new URL('https://example.com/images/atlas.png'),
},
]
autoLoad?
optional
autoLoad:boolean
Defined in: textures/types.ts:137
Whether the bundle should be loaded automatically on registration