Skip to content

SpineAsset

The interface extends AssetMapData for compatibility

Extends

Implements

Constructors

new SpineAsset()

new SpineAsset(assetName, assetPathOrType?, atlasPathOrName?): SpineAsset

Parameters

assetName: string

assetPathOrType?: string | SPINE_JSON | SPINE_SKEL

atlasPathOrName?: string

Returns

SpineAsset

Overrides

AssetMapData.constructor

Source

src/load/assets/SpineAsset.ts:9

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


atlasPath?

optional readonly atlasPath: string

Source

src/load/assets/SpineAsset.ts:7


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(): ISkeletonData<IBoneData, ISlotData, ISkin, IAnimation<ITimeline>, IEventData, IIkConstraintData, ITransformConstraintData, IPathConstraintData>

Returns

ISkeletonData<IBoneData, ISlotData, ISkin, IAnimation<ITimeline>, IEventData, IIkConstraintData, ITransformConstraintData, IPathConstraintData>

Implementation of

IAsset.getAsset

Source

src/load/assets/SpineAsset.ts:21


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Implementation of

IAsset.getLoaderOptions

Overrides

AssetMapData.getLoaderOptions

Source

src/load/assets/SpineAsset.ts:25


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