Header menu logo Nu

Slot Type

Stores a slot's current pose. Slots organize attachments for Skeleton.DrawOrder purposes and provide a place to store state for an attachment.State cannot be stored in an attachment itself because attachments are stateless and may be shared across multiple skeletons.

Constructors

Constructor Description

Slot(data, bone)

Full Usage: Slot(data, bone)

Parameters:
data : SlotData
bone : Bone

Slot(slot, bone)

Full Usage: Slot(slot, bone)

Parameters:

Copy constructor.

slot : Slot
bone : Bone

Instance members

Instance member Description

this.A

Full Usage: this.A

The color used to tint the slot's attachment. If Slot.HasSecondColor is set, this is used as the light color for two color tinting.

this.Attachment

Full Usage: this.Attachment

The current attachment for the slot, or null if the slot has no attachment. If the attachment is changed, resets Slot.SequenceIndex and clears the Slot.Deform. The deform is not cleared if the old attachment has the same VertexAttachment.TimelineAttachment as the specified attachment.

this.B

Full Usage: this.B

The color used to tint the slot's attachment. If Slot.HasSecondColor is set, this is used as the light color for two color tinting.

this.B2

Full Usage: this.B2

The dark color used to tint the slot's attachment for two color tinting, ignored if two color tinting is not used.

this.Bone

Full Usage: this.Bone

Returns: Bone

The bone this slot belongs to.

Returns: Bone

this.ClampColor

Full Usage: this.ClampColor

this.ClampSecondColor

Full Usage: this.ClampSecondColor

this.Data

Full Usage: this.Data

Returns: SlotData

The slot's setup pose data.

Returns: SlotData

this.Deform

Full Usage: this.Deform

Vertices to deform the slot's attachment. For an unweighted mesh, the entries are local positions for each vertex. For a weighted mesh, the entries are an offset for each vertex which will be added to the mesh's local vertex positions.

See VertexAttachment.ComputeWorldVertices and DeformTimeline.

this.G

Full Usage: this.G

The color used to tint the slot's attachment. If Slot.HasSecondColor is set, this is used as the light color for two color tinting.

this.G2

Full Usage: this.G2

The dark color used to tint the slot's attachment for two color tinting, ignored if two color tinting is not used.

this.HasSecondColor

Full Usage: this.HasSecondColor

Whether R2 G2 B2 are used to tint the slot's attachment for two color tinting. False if two color tinting is not used.

this.R

Full Usage: this.R

The color used to tint the slot's attachment. If Slot.HasSecondColor is set, this is used as the light color for two color tinting.

this.R2

Full Usage: this.R2

The dark color used to tint the slot's attachment for two color tinting, ignored if two color tinting is not used.

this.SequenceIndex

Full Usage: this.SequenceIndex

The index of the texture region to display when the slot's attachment has a Sequence. -1 represents the Sequence.SetupIndex.

this.SetToSetupPose

Full Usage: this.SetToSetupPose

Sets this slot to the setup pose.

this.Skeleton

Full Usage: this.Skeleton

Returns: Skeleton

The skeleton this slot belongs to.

Returns: Skeleton

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract
Returns: string

Type something to start searching.