Mitch ha scrittoskeletonAnimation.Skeleton.Skin.FindAttachmentsForSlot(index, list)
Thanks, but I can't get it to work, somehow. This is part of my code:
foreach (Spine.Slot slot in skel.slots) {
List<Attachment> attachmentList = new List<Attachment>();
int slotIndex = skel.FindSlotIndex(slot.data.name);
skel.skin.FindAttachmentsForSlot(slotIndex, attachmentList);
}
The goal is to iterate through each slot of the skeleton, then find each attachment. But this gives me an exception:
NullReferenceException: Object reference not set to an instance of an object
What am I doing wrong? How can I access the List generated by the FindAttachmentsForSlot() Method ?