[unity] Skin.Clear()

This commit is contained in:
pharan 2017-05-19 08:42:09 +08:00
parent 6756f01557
commit f9c04584c3

View File

@ -726,6 +726,10 @@ namespace Spine.Unity.Modules.AttachmentTools {
return skin.Attachments.Remove(new Skin.AttachmentKeyTuple(slotIndex, keyName));
}
public static void Clear (this Skin skin) {
skin.Attachments.Clear();
}
public static void Append (this Skin destination, Skin source, bool overwrite, bool cloneAttachments, bool cloneMeshesAsLinked = true) {
source.CopyTo(destination, overwrite, cloneAttachments, cloneMeshesAsLinked);
}