This is my project structure:
And this is my code, using Pixi-spine:
this.spine.skeleton.setAttachment('weapon_primary', 'sword'); // Doesn't work
this.spine.skeleton.setAttachment('back_shield', 'shield'); // Works
Why is that the first setAttachment doesn't work, but the second does? What I mean by doesn't work, is that the changes do not appear. When I call that code, I'll see a shield appear on the player's back, but not a sword in their hand.
I get no warnings either. Putting in an incorrect attachment name, such as:
this.spine.skeleton.setAttachment('weapon_primary', 'sword_abcdefg');
Results in an error as expected. So I find it weird that it doesn't appear without any warning.