An attachment that displays a textured mesh. A mesh has hull vertices and internal vertices within the hull. Holes are not supported. Each vertex has UVs (texture coordinates) and triangles are used to map an image on to the mesh.
See Mesh attachments in the Spine User Guide.
Constructor
Variables
edges:Null<Array<Int>>
Vertex index pairs describing edges for controling triangulation. Mesh triangles will never cross edges. Only available if nonessential data was exported. Triangulation is not performed at runtime.
Methods
inlinegetParentMesh():Null<MeshAttachment>
The parent mesh if this is a linked mesh, else null. A linked mesh shares the bones
, vertices
,
regionUVs
, triangles
, hullLength
, edges
, width
, and height
with the parent mesh,
but may have a different name
or path
(and therefore a different texture).
newLinkedMesh():MeshAttachment
Returns a new mesh with the parentMesh
set to this mesh's parent mesh, if any, else to this mesh.
updateUVs():Void
Calculates uvs
using regionUVs
and the region
. Must be called after changing the region UVs or region.