Skip to content

TextureAsset

The interface extends AssetMapData for compatibility

Extends

Implements

Constructors

new TextureAsset()

new TextureAsset(assetName, assetPathOrType?): TextureAsset

Parameters

assetName: string

assetPathOrType?: string | PNG | JPG

Returns

TextureAsset

Overrides

AssetMapData.constructor

Source

src/load/assets/TextureAsset.ts:7

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(): Texture<Resource>

Returns

Texture<Resource>

Implementation of

IAsset.getAsset

Source

src/load/assets/TextureAsset.ts:14


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