getParentMesh method

MeshAttachment? getParentMesh()

The parent mesh if this is a linked mesh, else null. A linked mesh shares the bones, vertices, region UVs, triangles, hull length, edges, width, and height with the parent mesh, but may have a different name or path (and therefore a different texture).

Implementation

MeshAttachment? getParentMesh() {
  final parent = _bindings.spine_mesh_attachment_get_parent_mesh(_attachment);
  if (parent.address == nullptr.address) return null;
  return MeshAttachment._(parent);
}