# Interface: AssetsBundle (/jsdoc/pixi-vn/index/interfaces/AssetsBundle)



Defined in: node\_modules/pixi.js/lib/assets/types.d.ts:258

Structure of a bundle found in a [AssetsManifest](/jsdoc/pixi-vn/index/interfaces/AssetsManifest) file. Bundles allow you to
group related assets together for easier management and loading.

Example [#example]

```ts
// 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']
    }
};
```

See [#see]

* Assets.addBundle For adding bundles programmatically
* Assets.loadBundle For loading bundles

Standard [#standard]

Properties [#properties]

assets [#assets]

\> **assets**: [`UnresolvedAsset`](/jsdoc/pixi-vn/index/interfaces/UnresolvedAsset)\<`any`>\[] | `Record`\<`string`, `ArrayOr`\<`string`> | [`UnresolvedAsset`](/jsdoc/pixi-vn/index/interfaces/UnresolvedAsset)\<`any`>>

Defined in: node\_modules/pixi.js/lib/assets/types.d.ts:262

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

***

name [#name]

\> **name**: `string`

Defined in: node\_modules/pixi.js/lib/assets/types.d.ts:260

Unique identifier for the bundle
