Hello,
So I swap a weapon with the following code below.
Skin clonedSkin = source.skeleton.GetClonedSkin("Default Skin");
int weaponSlotIndex = source.skeleton.FindSlotIndex("Weapon");
Attachment attachment = source.skeleton.GetAttachment(weaponSlotIndex, "New Weapon");
clonedSkin.SetAttachment(weaponSlotIndex, "Big sword", attachment);
skeletonAnimation.skeleton.SetSkin(clonedSkin);
skeletonAnimation.skeleton.SetToSetupPose();
It works fine with other animations but one animation, a block, somehow resets it to the default weapon of the skin. Can someone suggest how I may be able to fix this?
Thanks