new SpineLoader(url, crossorigin)
The Spine loader is used to load in JSON spine data To generate the data you need to use http://esotericsoftware.com/ and export in the "JSON" format Due to a clash of names You will need to change the extension of the spine file from .json to .anim for it to load See example 12 (http://www.goodboydigital.com/pixijs/examples/12/) to see a working example and check out the source You will need to generate a sprite sheet to accompany the spine data When loaded this class will dispatch a "loaded" event
Parameters
Name | Type | Description |
---|---|---|
url |
String | The url of the JSON file |
crossorigin |
Boolean | Whether requests should be treated as crossorigin |
- Source code: pixi/loaders/SpineLoader.js, line 10
Public Properties
-
crossorigin : boolean
-
Whether the requests should be treated as cross origin
- Source code: pixi/loaders/SpineLoader.js, line 34
-
[readonly] loaded : boolean
-
[read-only] Whether the data has loaded yet
- Source code: pixi/loaders/SpineLoader.js, line 42
-
url : string
-
The url of the bitmap font data
- Source code: pixi/loaders/SpineLoader.js, line 26
Public Methods
-
load()
-
Loads the JSON data
- Source code: pixi/loaders/SpineLoader.js, line 56