Greetings,
I'm new to spine and getting some problems when trying to changing new attachment.
Right now we have like "head_001","head_002", etc sets as region attachment. but when I tried to changed it via code with
skeleton = GetComponent<SkeletonAnimation>();
spriteCollectionAttachmentLoader = new SpriteCollectionAttachmentLoader(spriteCollection.spriteCollection);
Attachment attachment = spriteCollectionAttachmentLoader.NewAttachment(skeleton.skeleton.Skin,AttachmentType.region,"head_003");
skeleton.skeleton.FindSlot("head").Attachment = attachment;
skeleton.skeleton.SetSlotsToSetupPose();
The head won't changed, If I erased SetSlotsToSetupPose() , the head will be just disappears.
I'm already rechecking that the sprite is available on our sprite collections and when I'm changing the attachment manually by changing the json file, it changed.
Can you help me, what actually happened or did I missed something?
Thanks before :handshake: