isTimelineActive method

bool isTimelineActive(
  1. ArraySlot slots,
  2. int slotIndex,
  3. bool appliedPose
)

Returns true if the slotIndex or any getTimelineSlots() have an attachment whose getTimelineAttachment() is this attachment.

slots The Skeleton::getSlots(). slotIndex The timeline's primary slot index.

Implementation

bool isTimelineActive(ArraySlot slots, int slotIndex, bool appliedPose) {
  final result = SpineBindings.bindings
      .spine_attachment_is_timeline_active(_ptr, slots.nativePtr.cast(), slotIndex, appliedPose);
  return result;
}