pixi.js
    Preparing search index...

    Interface AssetsBundle

    Structure of a bundle found in a AssetsManifest file. Bundles allow you to group related assets together for easier management and loading.

    // Basic bundle structure
    const bundle: AssetsBundle = {
    name: 'level-1',
    assets: [
    {
    alias: 'background',
    src: 'level1/bg.{webp,png}'
    },
    {
    alias: 'sprites',
    src: 'level1/sprites.json'
    }
    ]
    };

    // Using object format for assets
    const bundle: AssetsBundle = {
    name: 'ui',
    assets: {
    button: 'ui/button.png',
    panel: 'ui/panel.png',
    icons: ['ui/icons.webp', 'ui/icons.png']
    }
    };
    interface AssetsBundle {
        assets:
            | Record<string, ArrayOr<string> | UnresolvedAsset<any>>
            | UnresolvedAsset<any>[];
        name: string;
    }
    Index

    Properties

    Properties

    assets:
        | Record<string, ArrayOr<string> | UnresolvedAsset<any>>
        | UnresolvedAsset<any>[]

    Assets contained in the bundle. Can be an array of assets or a record mapping aliases to sources.

    name: string

    Unique identifier for the bundle