Skip to content

JsonAsset

The interface extends AssetMapData for compatibility

Extends

Type parameters

T

Implements

Constructors

new JsonAsset()

new JsonAsset<T>(assetName, assetPath?): JsonAsset<T>

Parameters

assetName: string

assetPath?: string

Returns

JsonAsset<T>

Overrides

AssetMapData.constructor

Source

src/load/assets/JsonAsset.ts:6

Properties

assetName

assetName: string

The name of the asset file.

Implementation of

IAsset.assetName

Inherited from

AssetMapData.assetName

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Implementation of

IAsset.assetPath

Inherited from

AssetMapData.assetPath

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Implementation of

IAsset.assetType

Inherited from

AssetMapData.assetType

Source

src/load/AssetMapData.ts:16


data

data: any

Implementation of

IAsset.data

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

Implementation of

IAsset.resolutionSuffix

Inherited from

AssetMapData.resolutionSuffix

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Implementation of

IAsset.destroy

Inherited from

AssetMapData.destroy

Source

src/load/AssetMapData.ts:57


getAsset()

getAsset(): T

Returns

T

Implementation of

IAsset.getAsset

Source

src/load/assets/JsonAsset.ts:13


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Implementation of

IAsset.getLoaderOptions

Inherited from

AssetMapData.getLoaderOptions

Source

src/load/AssetMapData.ts:46


getResource()

getResource(): any

Returns

any

Implementation of

IAsset.getResource

Inherited from

AssetMapData.getResource

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Implementation of

IAsset.isLoaded

Inherited from

AssetMapData.isLoaded

Source

src/load/AssetMapData.ts:52