Loads skeleton data in the Spine JSON format.

See Spine JSON format and JSON and binary data in the Spine Runtimes Guide.

Constructor

new(attachmentLoader:AttachmentLoader)

Variables

@:value(1.0)scale:Float = 1.0

Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at runtime than were used in Spine.

See Scaling in the Spine Runtimes Guide.

Methods

readSkeletonData(json:EitherType<String, JRoot>):SkeletonData

Deserializes the Spine JSON data into a SkeletonData object.