Ver código fonte

[unity] Skin.Clear()

pharan 8 anos atrás
pai
commit
f9c04584c3

+ 4 - 0
spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

@@ -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);
 		}