playAnimationByName method

  1. @override
Future<void> playAnimationByName(
  1. ThermionEntity entity,
  2. String name, {
  3. bool loop = false,
  4. bool reverse = false,
  5. bool replaceActive = true,
  6. double crossfade = 0.0,
})
override

Schedules the glTF animation at index in entity to start playing on the next frame.

Implementation

@override
Future<void> playAnimationByName(ThermionEntity entity, String name,
    {bool loop = false,
    bool reverse = false,
    bool replaceActive = true,
    double crossfade = 0.0}) async {
  await _shim
      .playAnimationByName(
          entity, name, loop, reverse, replaceActive, crossfade)
      .toDart;
}