addAnimationComponent method

  1. @override
Future 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 addAnimationComponent(ThermionEntity entity) async {
  _module.ccall(
      "add_animation_component",
      "bool",
      ["void*".toJS, "int32_t".toJS].toJS,
      [_sceneManager!, entity.toJS].toJS,
      null);
}