diff --git a/spine-csharp/src/Skin.cs b/spine-csharp/src/Skin.cs index 4bb94d998..0528c4bc1 100644 --- a/spine-csharp/src/Skin.cs +++ b/spine-csharp/src/Skin.cs @@ -63,6 +63,12 @@ namespace Spine { return attachment; } + /// Removes the attachment in the skin for the specified slot index and name, if any. + public void RemoveAttachment (int slotIndex, string name) { + if (slotIndex < 0) throw new ArgumentOutOfRangeException("slotIndex", "slotIndex must be >= 0"); + attachments.Remove(new AttachmentKeyTuple(slotIndex, name)); + } + /// Finds the skin keys for a given slot. The results are added to the passed List(names). /// The target slotIndex. To find the slot index, use or /// Found skin key names will be added to this list.