findAttachmentsForSlot method

void findAttachmentsForSlot(
  1. int slotIndex,
  2. ArrayAttachment attachments
)

Finds the attachments for a given slot. The results are added to the passed array of Attachments.

slotIndex The target slotIndex. To find the slot index, use SkeletonData::findSlot and SlotData::getIndex. attachments Found Attachments will be added to this array.

Implementation

void findAttachmentsForSlot(int slotIndex, ArrayAttachment attachments) {
  SpineBindings.bindings.spine_skin_find_attachments_for_slot(_ptr, slotIndex, attachments.nativePtr.cast());
}