Skip to content

AssetMapSpineData

Extends

Constructors

new AssetMapSpineData()

new AssetMapSpineData(pName, pAtlasName, pAssetType): AssetMapSpineData

Parameters

pName: string

Spine skeleton filename, without the extension (e.g. spineboy if your file is spineboy.json)

pAtlasName: string= pName

Spine atlas filename. Defaults to the same as the skeleton (e.g. spineboy if your files are spineboy@1x.atlas and spineboy@2x.atlas)

pAssetType: SPINE_JSON | SPINE_SKEL= AssetType.SPINE_JSON

Json or binary (*.skel) format of spine skeleton data

Returns

AssetMapSpineData

Overrides

AssetMapData.constructor

Source

src/load/AssetMapSpineData.ts:16

Properties

assetName

assetName: string

The name of the asset file.

Inherited from

AssetMapData.assetName

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Inherited from

AssetMapData.assetPath

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Inherited from

AssetMapData.assetType

Source

src/load/AssetMapData.ts:16


atlas

readonly atlas: string

Source

src/load/AssetMapSpineData.ts:8


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

Inherited from

AssetMapData.resolutionSuffix

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Inherited from

AssetMapData.destroy

Source

src/load/AssetMapData.ts:57


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Overrides

AssetMapData.getLoaderOptions

Source

src/load/AssetMapSpineData.ts:25


getResource()

getResource(): any

Returns

any

Inherited from

AssetMapData.getResource

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Inherited from

AssetMapData.isLoaded

Source

src/load/AssetMapData.ts:52