Hello,
I'm trying to remove an attachment from a slot by setting it as null :
this.skeleton.setAttachment("SlotName", null);
The code works fine when i run the app with a browser, but when i test it on an emulator (win32 or Android) i get the following error:
ERROR
JS: C:/DevTools/cocos2d-js-v3.6.1/projects/Kaboodleoo_Mobile/runtime/win32/../../src/Avatar.js:42:Error: js_cocos2dx_spine_SkeletonRenderer_setAttachment : wrong number of arguments
I've already tried to set the attachment to 0 instead of null. That way I don't get the error but the attachment from the slot is not removed.
Does anyone know what am I doing wrong?