Skin Type
Stores attachments by slot index and attachment name.
See SkeletonData SkeletonData.DefaultSkin, Skeleton Skeleton.Skin, and Runtime skins in the Spine Runtimes Guide.
Constructors
Constructor | Description |
Full Usage:
Skin(name)
Parameters:
string
|
|
Instance members
Instance member | Description |
|
Adds all attachments, bones, and constraints from the specified skin to this skin.
|
|
Returns all attachments contained in this skin.
|
|
|
Full Usage:
this.Clear
|
Clears all attachments, bones, and constraints. |
|
|
|
Adds all attachments from the specified skin to this skin. Attachments are deep copied.
|
Full Usage:
this.GetAttachment
Parameters:
int
name : string
Returns: Attachment
May be null.
|
Returns the attachment for the specified slot index and name, or null.
|
Full Usage:
this.GetAttachments
Parameters:
int
-
The target slotIndex. To find the slot index, use SkeletonData.FindSlot and SlotData.Index
attachments : List<SkinEntry>
|
Returns all attachments in this skin for the specified slot index.
|
Full Usage:
this.Name
Returns: string
|
|
Full Usage:
this.RemoveAttachment
Parameters:
int
name : string
|
Removes the attachment in the skin for the specified slot index and name, if any.
|
|
Adds an attachment to the skin for the specified slot index and name. If the name already exists for the slot, the previous value is replaced.
|
Full Usage:
this.ToString
Returns: string
Modifiers: abstract |
|