AttachmentTimeline

Timelinespine.AttachmentTimeline (Class)
Implements: SlotTimeline

Changes a slot's {@link Slot#getAttachment()}.

Instance Members

spine
slotIndex: Int

spine
attachmentNames: spine.support.utils.StringArray

spine
getFrameCount(): Int
Returns
Int

spine
getSlotIndex(): Int
Returns
Int

spine
getAttachmentNames(): spine.support.utils.StringArray

The attachment name for each frame. May contain null values to clear the attachment.

Returns
spine.support.utils.StringArray

spine
setFrame(frame: Int, time: Float, attachmentName: String): Void

Sets the time and attachment name for the specified frame.

Name Type Description
frame Int Between 0 and frameCount, inclusive.
time Float The frame time in seconds.
attachmentName String

spine
apply(skeleton: Skeleton, lastTime: Float, time: Float, events: spine.support.utils.Array<Event>, alpha: Float, blend: MixBlend, direction: MixDirection): Void
Name Type
skeleton Skeleton
lastTime Float
time Float
events spine.support.utils.Array<Event>
alpha Float
blend MixBlend
direction MixDirection

spine
new(frameCount: Int, slotIndex: Int): Void
Name Type
frameCount Int
slotIndex Int

Private Members

spine
setAttachment(skeleton: Skeleton, slot: Slot, attachmentName: String): Void
Name Type
skeleton Skeleton
slot Slot
attachmentName String