SlotData

spine.SlotData (Class)

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

Instance Members

spine
index: Int

spine
name: String

spine
boneData: BoneData



spine
attachmentName: String

spine
blendMode: BlendMode

spine
getIndex(): Int

The index of the slot in {@link Skeleton#getSlots()}.

Returns
Int

spine
getName(): String

The name of the slot, which is unique across all slots in the skeleton.

Returns
String

spine
getBoneData(): BoneData

The bone this slot belongs to.

Returns
BoneData

The color used to tint the slot's attachment. If {@link #getDarkColor()} is set, this is used as the light color for two color tinting.

Returns
spine.support.graphics.Color

spine
getDarkColor(): spine.support.graphics.Color

The dark color used to tint the slot's attachment for two color tinting, or null if two color tinting is not used. The dark color's alpha is not used.

Returns
spine.support.graphics.Color

spine
setDarkColor(darkColor: spine.support.graphics.Color): Void
Name Type
darkColor spine.support.graphics.Color

spine
setAttachmentName(attachmentName: String): Void
Name Type
attachmentName String

spine
getAttachmentName(): String

The name of the attachment that is visible for this slot in the setup pose, or null if no attachment is visible.

Returns
String

spine
getBlendMode(): BlendMode

The blend mode for drawing the slot's attachment.

Returns
BlendMode

spine
setBlendMode(blendMode: BlendMode): Void
Name Type
blendMode BlendMode

spine
toString(): String
Returns
String

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