An attachment that displays a textured quadrilateral.
See Region attachments in the Spine User Guide.
Static variables
Constructor
Methods
updateOffset():Void
Calculates the {@link #offset} using the region settings. Must be called after changing region settings.
computeWorldVertices(bone:Bone, worldVertices:FloatArray, offset:Int, stride:Int):Void
Transforms the attachment's four vertices to world coordinates.
See World transforms in the Spine Runtimes Guide.
Parameters:
worldVertices | The output world vertices. Must have a length >= |
---|---|
offset | The |
stride | The number of |
getOffset():FloatArray
For each of the 4 vertices, a pair of x,y
values that is the local position of the vertex.
See {@link #updateOffset()}.