getBounds method

Bounds getBounds()

Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.

Implementation

Bounds getBounds() {
  final nativeBounds = _bindings.spine_skeleton_get_bounds(_skeleton);
  final bounds = Bounds(_bindings.spine_bounds_get_x(nativeBounds), _bindings.spine_bounds_get_y(nativeBounds),
      _bindings.spine_bounds_get_width(nativeBounds), _bindings.spine_bounds_get_height(nativeBounds));
  return bounds;
}