I'm trying to make my code a bit more dynamic so I'm trying to get a list of attachments on a slot. Let's say the slot is called Clothes_Torso.
this.spine.skeleton.skin.getAttachmentsForSlot('Clothes_Torso')The code above returns undefined. After reading the docs it says the code should be:
getAttachmentsForSlot (slotIndex: number, attachments: Array<SkinEntry>)But why would i send along an array of attachments when that's what I want in the first place?
I hope this is somewhat clear?
[EDIT] Oooooooh the attachments: Array<SkinEntry> is an out. The method itself returns nothing. How odd.