BoneData

spine.BoneData (Class)

Stores the setup pose for a {@link Bone}.

Instance Members

spine
index: Int

spine
name: String

spine
parent: BoneData

spine
length: Float

spine
x: Float

spine
y: Float

spine
rotation: Float

spine
scaleX: Float

spine
scaleY: Float

spine
shearX: Float

spine
shearY: Float

spine
transformMode: TransformMode

spine
skinRequired: Bool


spine
getIndex(): Int

The index of the bone in {@link Skeleton#getBones()}.

Returns
Int

spine
getName(): String

The name of the bone, which is unique across all bones in the skeleton.

Returns
String

spine
getParent(): BoneData
Returns
BoneData

spine
getLength(): Float

The bone's length.

Returns
Float

spine
setLength(length: Float): Void
Name Type
length Float

spine
getX(): Float

The local x translation.

Returns
Float

spine
setX(x: Float): Void
Name Type
x Float

spine
getY(): Float

The local y translation.

Returns
Float

spine
setY(y: Float): Void
Name Type
y Float

spine
setPosition(x: Float, y: Float): Void
Name Type
x Float
y Float

spine
getRotation(): Float

The local rotation.

Returns
Float

spine
setRotation(rotation: Float): Void
Name Type
rotation Float

spine
getScaleX(): Float

The local scaleX.

Returns
Float

spine
setScaleX(scaleX: Float): Void
Name Type
scaleX Float

spine
getScaleY(): Float

The local scaleY.

Returns
Float

spine
setScaleY(scaleY: Float): Void
Name Type
scaleY Float

spine
setScale(scaleX: Float, scaleY: Float): Void
Name Type
scaleX Float
scaleY Float

spine
getShearX(): Float

The local shearX.

Returns
Float

spine
setShearX(shearX: Float): Void
Name Type
shearX Float

spine
getShearY(): Float

The local shearX.

Returns
Float

spine
setShearY(shearY: Float): Void
Name Type
shearY Float

spine
getTransformMode(): TransformMode

The transform mode for how parent world transforms affect this bone.

Returns
TransformMode

spine
setTransformMode(transformMode: TransformMode): Void
Name Type
transformMode TransformMode

spine
getSkinRequired(): Bool

When true, {@link Skeleton#updateWorldTransform()} only updates this bone if the {@link Skeleton#getSkin()} contains this bone.

See {@link Skin#getBones()}. | Returns | |---------| | [Bool](/api-docs/clay-native/Bool/) |


spine
setSkinRequired(skinRequired: Bool): Void
Name Type
skinRequired Bool

The color of the bone as it was in Spine, or a default color if nonessential data was not exported. Bones are not usually rendered at runtime.

Returns
spine.support.graphics.Color

spine
toString(): String
Returns
String

spine
new(index: Int, name: String, parent: BoneData): Void
Name Type
index Int
name String
parent BoneData