Skip to content

AssetMapData

Stores data used to load and unload assets.

Extended by

Constructors

new AssetMapData()

new AssetMapData(pAssetName, pAssetType): AssetMapData

Parameters

pAssetName: string

pAssetType: AssetType

Returns

AssetMapData

Source

src/load/AssetMapData.ts:33

Properties

assetName

assetName: string

The name of the asset file.

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Source

src/load/AssetMapData.ts:16


data

data: any

Source

src/load/AssetMapData.ts:26


resolutionSuffix

resolutionSuffix: string = ''

If resolution suffix is set the asset is loaded only on devices with the matched asset resolution

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Source

src/load/AssetMapData.ts:57


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Source

src/load/AssetMapData.ts:46


getResource()

getResource(): any

Returns

any

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Source

src/load/AssetMapData.ts:52