# Interface: UnresolvedAsset<T> (/jsdoc/pixi-vn/index/interfaces/UnresolvedAsset)



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

An asset that has not been resolved yet. This is the initial format used when adding assets
to the Assets system before they are processed into a [ResolvedAsset](/jsdoc/pixi-vn/index/interfaces/ResolvedAsset).

Example [#example]

```ts
// Basic unresolved asset
const asset: UnresolvedAsset = {
    alias: 'hero',
    src: 'hero.png'
};

// Multiple aliases and formats
const asset: UnresolvedAsset = {
    alias: ['hero', 'player'],
    src: 'hero.{webp,png}',
    data: {
        scaleMode: 'nearest',
    }
};

// Asset with multiple sources and formats
const asset: UnresolvedAsset = {
    alias: 'background',
    src: [
        'bg@2x.webp',
        'bg@1x.webp',
        'bg@2x.png',
        'bg@1x.png',
    ]
};

// With specific loader
const asset: UnresolvedAsset = {
    alias: 'config',
    src: 'data.txt',
    parser: 'text'
};
```

Remarks [#remarks]

* Used as input format when adding assets to the system
* Can specify multiple aliases for the same asset
* Supports format patterns for browser compatibility
* Can include loader-specific data and options

See [#see]

* [ResolvedAsset](/jsdoc/pixi-vn/index/interfaces/ResolvedAsset) For the resolved asset format
* Assets.add For adding unresolved assets

Standard [#standard]

Type Parameters [#type-parameters]

T [#t]

`T` = `any`

Indexable [#indexable]

\> \[`key`: `string`]: `any`

Properties [#properties]

alias? [#alias]

\> `optional` &#x2A;*alias?**: `ArrayOr`\<`string`>

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

Aliases associated with asset

***

data? [#data]

\> `optional` &#x2A;*data?**: `T`

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

Optional data passed to the asset loader.
Can include texture settings, parser options, or other asset-specific data.

***

format? [#format]

\> `optional` &#x2A;*format?**: `string`

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

File format of the asset, usually the file extension. Used to determine which loader parser to use.

***

~~loadParser?~~ [#loadparser]

\> `optional` &#x2A;*loadParser?**: [`LoadParserName`](/jsdoc/pixi-vn/index/type-aliases/LoadParserName)

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

Deprecated [#deprecated]

Use `parser` instead.

***

parser? [#parser]

\> `optional` &#x2A;*parser?**: `AssetParser`

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

Override to specify which parser should load this asset. Useful when file extensions don't match the content type.

***

src? [#src]

\> `optional` &#x2A;*src?**: [`AssetSrc`](/jsdoc/pixi-vn/index/type-aliases/AssetSrc)

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

The URL or relative path to the asset
