The manifest format for defining all assets in your application. Manifests provide a structured way to organize and manage your assets through bundles.
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 manifestawait Assets.init({ manifest });// Load bundles as neededawait Assets.loadBundle('loading');await Assets.loadBundle('game'); Copy
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 manifestawait Assets.init({ manifest });// Load bundles as neededawait Assets.loadBundle('loading');await Assets.loadBundle('game');
Array of asset bundles that make up the manifest
The manifest format for defining all assets in your application. Manifests provide a structured way to organize and manage your assets through bundles.
Example
See