RegionAttachment
Attachment →
spine.attachments.RegionAttachment (Class)
An attachment that displays a textured quadrilateral.
See Region attachments in the Spine User Guide.
Static Members
Instance Members
spine
updateOffset(): Void
Calculates the {@link #offset} using the region settings. Must be called after changing region settings.
Transforms the attachment's four vertices to world coordinates.
See World transforms in the Spine
Runtimes Guide.
Name |
Type |
Description |
bone |
spine.Bone |
|
worldVertices |
spine.support.utils.FloatArray |
The output world vertices. Must have a length >= offset + 8. |
offset |
Int |
The worldVertices index to begin writing values. |
stride |
Int |
The number of worldVertices entries between the value pairs written. |
For each of the 4 vertices, a pair of x,y
values that is the local position of the vertex.
See {@link #updateOffset()}.
| Returns |
|---------|
| [spine.support.utils.FloatArray](/api-docs/clay-native/spine/support/utils/FloatArray/) |
The local x translation.
The local y translation.
The local scaleX.
The local scaleY.
spine
getRotation(): Float
The local rotation.
The width of the region attachment in Spine.
The height of the region attachment in Spine.
The color to tint the region attachment.
The name of the texture region for this attachment.
Private Members