Is there any way to get all bounding boxes from a skeleton even though its still in setup mode? I basically need to cache the bounding boxes for a particular reason.
I know I can do this:
Array slots = skeleton.slots;
for(int i = 0; i < slotCount; i++)
{
Slot slot = slots.get(i);
Attachment attachment = slot.attachment;
if(attachment instanceof BoundingBoxAttachment)
{
BoundingBoxAttachment boundingBox = (BoundingBoxAttachment) attachment;
boundingBoxes.add(boundingBox);
}
}
but the problem with this is if there are bounding boxes that aren't "active" (keyed) when I'm running the code, it doesn't recognize them.