• Bugs
  • Unity Skin.GetAttachments returns wrong attachments

Hi. I found a bug.

  1. Create cloned skin by SkinUtilities.GetClonedSkin() cloneAttachments : true
  2. Get attachments by clonedSkin.GetAttachments().

Returned attachments are not cloned. They are source skin's attachments.

SkinUtilities.CopyTo reused source skin's key. it contains source attachment.

destinationAttachments[e.Key] = e.Value.GetCopy(cloneMeshesAsLinked);

Skin.GetAttachments returns attachments from key.

Thanks.

Related Discussions
...
  • Изменено

Sorry for the touble! Thanks very much for reporting and digging into the cause of the problem!

We have just released a bugfix, you can download the updated unitypackage here as usual:
Spine Unity Download
Please let us know whether this resolves your issue.

For reference: this issue has been tracked under this ticket:
https://github.com/EsotericSoftware/spine-runtimes/issues/1599