setMorphAnimationData abstract method

Future setMorphAnimationData(
  1. ThermionEntity entity,
  2. MorphAnimationData animation, {
  3. List<String>? targetMeshNames,
})

Animate the morph targets in entity. See MorphTargetAnimation for an explanation as to how to construct the animation frame data. This method will check the morph target names specified in animation against the morph target names that actually exist exist under meshName in entity, throwing an exception if any cannot be found. It is permissible for animation to omit any targets that do exist under meshName; these simply won't be animated.

Implementation

Future setMorphAnimationData(
    ThermionEntity entity, MorphAnimationData animation,
    {List<String>? targetMeshNames});