addAll

Creates and adds animations with the specified initial properties to the collection for all animations in the model.

This raises the ModelAnimationCollection.animationAdded event for each model so, for example, a UI can stay in sync.

model.activeAnimations.addAll({
multiplier : 0.5, // Play at half-speed
loop : ModelAnimationLoop.REPEAT // Loop the animations
});

Return

An array of ModelAnimation objects, one for each animation added to the collection. If there are no glTF animations, the array is empty.

See also