PathAttachment

AttachmentVertexAttachmentspine.attachments.PathAttachment (Class)

An attachment whose vertices make up a composite Bezier curve.

See {@link PathConstraint} and Paths in the Spine User Guide.

Instance Members


spine
closed: Bool

spine
constantSpeed: Bool


spine
getClosed(): Bool

If true, the start and end knots are connected.

Returns
Bool

spine
setClosed(closed: Bool): Void
Name Type
closed Bool

spine
getConstantSpeed(): 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.

Returns
Bool

spine
setConstantSpeed(constantSpeed: Bool): Void
Name Type
constantSpeed Bool

The lengths along the path in the setup pose from the start of the path to the end of each Bezier curve.

Returns
spine.support.utils.FloatArray

spine
setLengths(lengths: spine.support.utils.FloatArray): Void
Name Type
lengths spine.support.utils.FloatArray

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.

Returns
spine.support.graphics.Color

spine
copy(): Attachment
Returns
Attachment

spine
new(name: String): Void
Name Type
name String