getBoneByName static method

dynamic getBoneByName(
  1. dynamic name,
  2. dynamic skeleton
)

Implementation

static getBoneByName(name, skeleton) {
  for (var i = 0, bones = getBones(skeleton); i < bones.length; i++) {
    if (name == bones[i].name) return bones[i];
  }
}