Instance Property

availableAnimations

The list of animations associated with the entity.

Declaration

var availableAnimations: [AnimationResource] { get }

Discussion

When you import an entity from a file, for example by using the load(named:in:) method, the entity might contain associated animations. Any that RealityKit supports appear in the availableAnimations array.

To play a particular animation resource from the list, call the playAnimation(_:transitionDuration:startsPaused:) method. Alternatively, to play all animations with a given name, call the playAnimation(named:transitionDuration:startsPaused:) method instead.