• Editor
  • How to clear Attachment In runtime on Cocos2d-x?

HI.

I often use this method
skeletonTemp->setAttachment("Slot_Arm", "knife");

I tried like this because i want clear slot.

I skelAnim->setAttachment("Slot_A", " ");
I skelAnim->setAttachment("Slot_A", NULL);

But it can't running. It shows error.

How can i clear slot?

P.S) I'm not to good at English because i'm korean.

Related Discussions
...

I've made a fix in spine-c that should fix this for you. skeleton->setAttachment("Slot_A", NULL); should work now.

Oh my god! Thank you!!! I love you so much!!

:love:

P.S) I am a boy.