getBones method

Int32List getBones()

The bones which affect the getVertices. The array entries are, for each vertex, the number of bones affecting the vertex followed by that many bone indices, which is the index of the bone in Skeleton.getBones. Will be null if this attachment has no weights.

Implementation

Int32List getBones() {
  final num = _bindings.spine_vertex_attachment_get_num_bones(_attachment.cast());
  final bones = _bindings.spine_vertex_attachment_get_bones(_attachment.cast());
  return bones.asTypedList(num);
}