SkeletonLoader

spine.SkeletonLoader (Class) → SkeletonJson

Base class for loading skeleton data from a file.

See JSON and binary data in the Spine Runtimes Guide.

Instance Members


spine
scale: Float


spine
getScale(): Float

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. | Returns | |---------| | [Float](/api-docs/clay-native/Float/) |


spine
setScale(scale: Float): Void
Name Type
scale Float

spine
new(attachmentLoader: spine.attachments.AttachmentLoader): Void

Creates a skeleton loader that loads attachments using the specified attachment loader.

See Loading skeleton data in the Spine Runtimes Guide.

Name Type
attachmentLoader spine.attachments.AttachmentLoader