Header menu logo Nu

VertexAttachment Type

>An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's Slot.Deform.

Constructors

Constructor Description

VertexAttachment(name)

Full Usage: VertexAttachment(name)

Parameters:
    name : string

name : string

VertexAttachment(other)

Full Usage: VertexAttachment(other)

Parameters:

Copy constructor.

other : VertexAttachment

Instance members

Instance member Description

this.Bones

Full Usage: this.Bones

this.ComputeWorldVertices

Full Usage: this.ComputeWorldVertices

Parameters:
    slot : Slot
    worldVertices : float32[]

slot : Slot
worldVertices : float32[]

this.ComputeWorldVertices

Full Usage: this.ComputeWorldVertices

Parameters:
    slot : Slot
    start : int - The index of the first VertexAttachment.Vertices value to transform. Each vertex has 2 values, x and y.
    count : int - The number of world vertex values to output. Must be less than or equal to VertexAttachment.WorldVerticesLength - start.
    worldVertices : float32[] - The output world vertices. Must have a length greater than or equal to offset + count.
    offset : int - The worldVertices index to begin writing values.
    ?stride : int - The number of worldVertices entries between the value pairs written.

Modifiers: abstract

Transforms the attachment's local VertexAttachment.Vertices to world coordinates. If the slot's Slot.Deform is not empty, it is used to deform the vertices.

See World transforms in the Spine Runtimes Guide.

slot : Slot
start : int

The index of the first VertexAttachment.Vertices value to transform. Each vertex has 2 values, x and y.

count : int

The number of world vertex values to output. Must be less than or equal to VertexAttachment.WorldVerticesLength - start.

worldVertices : float32[]

The output world vertices. Must have a length greater than or equal to offset + count.

offset : int

The worldVertices index to begin writing values.

?stride : int

The number of worldVertices entries between the value pairs written.

this.Id

Full Usage: this.Id

Returns: int

Gets a unique ID for this attachment.

Returns: int

this.TimelineAttachment

Full Usage: this.TimelineAttachment

Timelines for the timeline attachment are also applied to this attachment.
            May be null if no attachment-specific timelines should be applied.

this.Vertices

Full Usage: this.Vertices

this.WorldVerticesLength

Full Usage: this.WorldVerticesLength

Type something to start searching.