Skip to content

IAsset

The interface extends AssetMapData for compatibility

Extends

Type parameters

T

Properties

assetName

readonly assetName: string

The name of the asset file.

Overrides

AssetMapData.assetName

Source

src/load/assets/IAsset.ts:7


assetPath

readonly assetPath: string

Path to the asset

Overrides

AssetMapData.assetPath

Source

src/load/assets/IAsset.ts:8


assetType

assetType: AssetType

The type of the asset file.

Inherited from

AssetMapData.assetType

Source

src/load/AssetMapData.ts:16


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

Overrides

AssetMapData.resolutionSuffix

Source

src/load/assets/IAsset.ts:9

Methods

destroy()

destroy(): void

Returns

void

Overrides

AssetMapData.destroy

Source

src/load/assets/IAsset.ts:17


getAsset()

getAsset(): T

Returns

T

Source

src/load/assets/IAsset.ts:11


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Overrides

AssetMapData.getLoaderOptions

Source

src/load/assets/IAsset.ts:13


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/assets/IAsset.ts:15