Hi!
When I add new attachment on the skeleton - spine starts allocating on heap every frame (picture for 1 character):
I'm trying to use repacked skins, but with no luck. I'm use SkeletonAnimator together with unity Animator.
That's how i'm add attachment (code from sample project):
// Create attachment
var equipType = asset.EquipType;
var howToEquip = Equippables.Find(x => x.Type == equipType);
var skeletonData = SkeletonDataAsset.GetSkeletonData(true);
var slotIndex = skeletonData.FindSlotIndex(howToEquip.Slot);
var attachment = GenerateAttachmentFromEquipAsset(asset, slotIndex, howToEquip.TemplateSkin,
howToEquip.TemplateAttachment);
Target.Equip(slotIndex, howToEquip.TemplateAttachment, attachment);
// Target.Equip method:
_equipsSkin = new Skin("Equips");
_equipsSkin.AddAttachment(slotIndex, attachmentName, attachment);
SkeletonAnimation.Skeleton.SetSkin(_equipsSkin);
SkeletonAnimation.Skeleton.SetSlotsToSetupPose();
I'm using 3.6 runtime latest package.