I'm running into a Null Reference when I try to get the attachments of a slot from a skeleton when running into a mobile device. Do you guys know if I need to initialize (or wait for) something before attempting to find the slot and its attachment?
My skeleton has several slots and I use this line to get the attachment
Attachment currentSlotOff = MyAsset.Skeleton.FindSlot(SlotName + "Off").Attachment;
Attachment currentSlotOn = MyAsset.Skeleton.FindSlot(SlotName + "On").Attachment;I'm using C# in unity and a SkeletonGraphic.
- I have the SkeletonGraphic already on the screen.
- When initializingthe asset that uses this skeleton, I try to get the slot and the attachement
- I get a null reference, but only on the mobile build never on Unity's Editor
Thank you for your help!