AssetMapData
Stores data used to load and unload assets.
Extended by
AssetMapAudioData
AssetMapSpineData
FontAsset
IAsset
JsonAsset
SpineAsset
TextureAsset
TextureAtlasAsset
WebFontAsset
Constructors
new AssetMapData()
new AssetMapData(
pAssetName
,pAssetType
):AssetMapData
Parameters
• pAssetName: string
• pAssetType: AssetType
Returns
Source
Properties
assetName
assetName:
string
The name of the asset file.
Source
assetPath
assetPath:
string
=''
Path to the asset
Source
assetType
assetType:
AssetType
The type of the asset file.
Source
data
data:
any
Source
resolutionSuffix
resolutionSuffix:
string
=''
If resolution suffix is set the asset is loaded only on devices with the matched asset resolution
Source
Methods
destroy()
destroy():
void
Returns
void
Source
getLoaderOptions()
getLoaderOptions():
undefined
|Partial
<any
>
Returns
undefined
| Partial
<any
>
Source
getResource()
getResource():
any
Returns
any
Source
isLoaded()
isLoaded():
boolean
Returns
boolean