Skip to content

AssetMapAudioData

Stores audio specific data used to load and unload assets.

Extends

Constructors

new AssetMapAudioData()

new AssetMapAudioData(pName, pAssetType, pCategory): AssetMapAudioData

Parameters

pName: string

pAssetType: AssetType

pCategory: string

Returns

AssetMapAudioData

Overrides

AssetMapData.constructor

Source

src/load/AssetMapAudioData.ts:21

Properties

assetName

assetName: string

The name of the asset file.

Inherited from

AssetMapData.assetName

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Inherited from

AssetMapData.assetPath

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Inherited from

AssetMapData.assetType

Source

src/load/AssetMapData.ts:16


category

category: string

The category to add this audio asset to.

Source

src/load/AssetMapAudioData.ts:13


data

data: any

Inherited from

AssetMapData.data

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

Inherited from

AssetMapData.resolutionSuffix

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Inherited from

AssetMapData.destroy

Source

src/load/AssetMapData.ts:57


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Inherited from

AssetMapData.getLoaderOptions

Source

src/load/AssetMapData.ts:46


getResource()

getResource(): any

Returns

any

Inherited from

AssetMapData.getResource

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Overrides

AssetMapData.isLoaded

Source

src/load/AssetMapAudioData.ts:26