TextureAsset
The interface extends AssetMapData for compatibility
Extends
Implements
IAsset
<Texture
>
Constructors
new TextureAsset()
new TextureAsset(
assetName
,assetPathOrType
?):TextureAsset
Parameters
• assetName: string
• assetPathOrType?: string
| PNG
| JPG
Returns
Overrides
Source
src/load/assets/TextureAsset.ts:7
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():
Texture
<Resource
>
Returns
Texture
<Resource
>
Implementation of
Source
src/load/assets/TextureAsset.ts:14
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