pixi-jsInterfaces
Interface: AssetsManifest
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:308
The manifest format for defining all assets in your application. Manifests provide a structured way to organize and manage your assets through bundles.
Example
const manifest: AssetsManifest = {
bundles: [
{
name: 'loading',
assets: [
{
alias: 'logo',
src: 'logo.{webp,png}',
data: { scaleMode: 'nearest' }
},
{
alias: 'progress-bar',
src: 'progress.png'
}
]
},
{
name: 'game',
assets: {
background: ['bg.webp', 'bg.png'],
character: 'hero.json',
music: 'theme.mp3'
}
}
]
};
// Initialize with manifest
await Assets.init({ manifest });
// Load bundles as needed
await Assets.loadBundle('loading');
await Assets.loadBundle('game');
See
- Assets.init For initializing with a manifest
- AssetsBundle For bundle structure details
Standard
Properties
bundles
> bundles: AssetsBundle[]
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:310
Array of asset bundles that make up the manifest