addAnimationComponent method

  1. @override
Future<void> addAnimationComponent(
  1. ThermionEntity entity
)
override

An entity will only be animatable after an animation component is attached. Any calls to playAnimation/setBoneAnimation/setMorphAnimation will have no visual effect until addAnimationComponent has been called on the instance.

Implementation

@override
Future<void> addAnimationComponent(ThermionEntity entity) async {
  await _shim.addAnimationComponent(entity).toDart;
}