getBoneNames method

  1. @JSExport()
JSPromise<JSArray<JSString>> getBoneNames(
  1. ThermionEntity entity,
  2. int skinIndex
)

Implementation

@JSExport()
JSPromise<JSArray<JSString>> getBoneNames(
    ThermionEntity entity, int skinIndex) {
  return viewer
      .getBoneNames(entity, skinIndex: skinIndex)
      .then((v) => v.map((s) => s.toJS).toList().toJS)
      .toJS;
}