VertexAttachment<T extends Pointer<NativeType>> class

Base class for an attachment with vertices that are transformed by one or more bones and can be deformed by a slot's Slot.getDeform.

Inheritance
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeWorldVertices(Slot slot) List<double>
Transforms and returns the attachment's local getVertices to world coordinates. If the slot's Slot.getDeform is not empty, it is used to deform the vertices. See World transforms in the Spine Runtimes Guide.
copy() Attachment<Pointer<NativeType>>
Returns a copy of the attachment. Copied attachments need to be disposed manually when no longer in use via the dispose method.
inherited
dispose() → void
inherited
getBones() Int32List
The bones which affect the getVertices. The array entries are, for each vertex, the number of bones affecting the vertex followed by that many bone indices, which is the index of the bone in Skeleton.getBones. Will be null if this attachment has no weights.
getName() String
The attachment's name.
inherited
getTimelineAttachment() Attachment<Pointer<NativeType>>?
Timelines for the timeline attachment are also applied to this attachment. May return null if not attachment-specific timelines should be applied.
getType() AttachmentType
The attachment's type.
inherited
getVertices() Float32List
The vertex positions in the bone's coordinate system. For a non-weighted attachment, the values are x,y entries for each vertex. For a weighted attachment, the values are x,y,weight entries for each bone affecting each vertex.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTimelineAttachment(Attachment<Pointer<NativeType>>? attachment) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited