Header menu logo Nu

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

Skin(name)

Full Usage: Skin(name)

Parameters:
    name : string

name : string

Instance members

Instance member Description

this.AddSkin

Full Usage: this.AddSkin

Parameters:

Adds all attachments, bones, and constraints from the specified skin to this skin.

skin : Skin

this.Attachments

Full Usage: this.Attachments

Returns: ICollection<SkinEntry>

Returns all attachments contained in this skin.

Returns: ICollection<SkinEntry>

this.Bones

Full Usage: this.Bones

Returns: ExposedList<BoneData>
Returns: ExposedList<BoneData>

this.Clear

Full Usage: this.Clear

Clears all attachments, bones, and constraints.

this.Constraints

Full Usage: this.Constraints

Returns: ExposedList<ConstraintData>
Returns: ExposedList<ConstraintData>

this.CopySkin

Full Usage: this.CopySkin

Parameters:

Adds all attachments from the specified skin to this skin. Attachments are deep copied.

skin : Skin

this.GetAttachment

Full Usage: this.GetAttachment

Parameters:
    slotIndex : int
    name : string

Returns: Attachment May be null.

Returns the attachment for the specified slot index and name, or null.

slotIndex : int
name : string
Returns: Attachment

May be null.

this.GetAttachments

Full Usage: this.GetAttachments

Parameters:

Returns all attachments in this skin for the specified slot index.

slotIndex : int

The target slotIndex. To find the slot index, use SkeletonData.FindSlot and SlotData.Index

attachments : List<SkinEntry>

this.Name

Full Usage: this.Name

Returns: string
Returns: string

this.RemoveAttachment

Full Usage: this.RemoveAttachment

Parameters:
    slotIndex : int
    name : string

Removes the attachment in the skin for the specified slot index and name, if any.

slotIndex : int
name : string

this.SetAttachment

Full Usage: this.SetAttachment

Parameters:
    slotIndex : int
    name : string
    attachment : Attachment

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.
slotIndex : int
name : string
attachment : Attachment

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract
Returns: string

Type something to start searching.