PathAttachment class

An attachment whose vertices make up a composite Bezier curve.

See PathConstraint and Paths in the Spine User Guide.

Inheritance

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.
inherited
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.
inherited
getColor() Color
The color of the path as it was in Spine, or a default color if nonessential data was not exported. Paths are not usually rendered at runtime.
getLengths() Float32List
The lengths along the path in the setup pose from the start of the path to the end of each Bezier curve.
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.
inherited
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.
inherited
isClosed() bool
If true, the start and end knots are connected.
isConstantSpeed() bool
If true, additional calculations are performed to make computing positions along the path more accurate and movement along the path have a constant speed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColor(double r, double g, double b, double a) → void
setIsClosed(bool isClosed) → void
setIsConstantSpeed(bool isClosed) → void
setTimelineAttachment(Attachment<Pointer<NativeType>>? attachment) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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