Assets/Lib.Spine/spine-unity/SkeletonExtensions.cs
/// <summary>Resets the attachment of slot at a given slotIndex to setup pose. This is faster than Slot.SetAttachmentToSetupPose.</summary>
Resets the attachment of slot at a given slotIndex to setup pose. This is faster than Slot.SetAttachmentToSetupPose.
Resets the attachment of slot at a given slotIndex to setup pose . This is faster than Slot . SetAttachmentToSetupPose .
public static void SetSlotAttachmentToSetupPose (this Skeleton skeleton, int slotIndex) {
			var slot = skeleton.slots.Items[slotIndex];
			var attachmentName = slot.data.attachmentName;
			if (string.IsNullOrEmpty(attachmentName)) {
				slot.Attachment = null;
			} else {
				var attachment = skeleton.GetAttachment(slotIndex, attachmentName);
				slot.Attachment = attachment;
			}
		}
public static void SetSlotAttachmentToSetupPose ( this Skeleton skeleton , int slotIndex ) { var slot = skeleton . slots . Items [ slotIndex ] ; var attachmentName = slot . data . attachmentName ; if ( string . IsNullOrEmpty ( attachmentName ) ) { slot . Attachment = null ; } else { var attachment = skeleton . GetAttachment ( slotIndex , attachmentName ) ; slot . Attachment = attachment ; } }
Resets the attachment of slot at a given slotIndex to setup pose.
Resets the attachment of slot at a given slotIndex to setup pose .
Skeleton
this
slotIndex
int