ModelAnimationCollection
A collection of active model animations.
See also
Types
Properties
When true, the animation will play even when the scene time is paused. However, whether animation takes place will depend on the animationTime functions assigned to the model's animations. By default, this is based on scene time, so models using the default will not animate regardless of this setting.
The event fired when an animation is added to the collection. This can be used, for example, to keep a UI in sync.
The event fired when an animation is removed from the collection. This can be used, for example, to keep a UI in sync.
Functions
Creates and adds an animation with the specified initial properties to the collection.
Creates and adds animations with the specified initial properties to the collection for all animations in the model.
Determines whether this collection contains a given animation.
Returns the animation in the collection at the specified index. Indices are zero-based and increase as animations are added. Removing an animation shifts all animations after it to the left, changing their indices. This function is commonly used to iterate over all the animations in the collection.
Removes an animation from the collection.