playAnimation method

  1. @JSExport()
JSPromise<JSAny?> playAnimation(
  1. ThermionEntity entity,
  2. int index, {
  3. bool loop = false,
  4. bool reverse = false,
  5. bool replaceActive = true,
  6. double crossfade = 0.0,
})

Implementation

@JSExport()
JSPromise playAnimation(ThermionEntity entity, int index,
        {bool loop = false,
        bool reverse = false,
        bool replaceActive = true,
        double crossfade = 0.0}) =>
    viewer
        .playAnimation(
          entity,
          index,
          loop: loop,
          reverse: reverse,
          replaceActive: replaceActive,
          crossfade: crossfade,
        )
        .toJS;