JsonAsset
The interface extends AssetMapData for compatibility
Extends
Type parameters
• T
Implements
IAsset
<T
>
Constructors
new JsonAsset()
new JsonAsset<
T
>(assetName
,assetPath
?):JsonAsset
<T
>
Parameters
• assetName: string
• assetPath?: string
Returns
JsonAsset
<T
>
Overrides
Source
src/load/assets/JsonAsset.ts:6
Properties
assetName
assetName:
string
The name of the asset file.
Implementation of
Inherited from
Source
assetPath
assetPath:
string
=''
Path to the asset
Implementation of
Inherited from
Source
assetType
assetType:
AssetType
The type of the asset file.
Implementation of
Inherited from
Source
data
data:
any
Implementation of
Inherited from
Source
resolutionSuffix
resolutionSuffix:
string
=''
If resolution suffix is set the asset is loaded only on devices with the matched asset resolution
Implementation of
Inherited from
Source
Methods
destroy()
destroy():
void
Returns
void
Implementation of
Inherited from
Source
getAsset()
getAsset():
T
Returns
T
Implementation of
Source
src/load/assets/JsonAsset.ts:13
getLoaderOptions()
getLoaderOptions():
undefined
|Partial
<any
>
Returns
undefined
| Partial
<any
>
Implementation of
Inherited from
Source
getResource()
getResource():
any
Returns
any
Implementation of
Inherited from
Source
isLoaded()
isLoaded():
boolean
Returns
boolean