availableAnimations
The list of animations associated with the entity.
Declaration
@MainActor @preconcurrency 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.
See Also
Animating an entity
playAnimation(_:transitionDuration:blendLayerOffset:separateAnimatedValue:startsPaused:clock:)playAnimation(_:transitionDuration:blendLayerOffset:separateAnimatedValue:startsPaused:clock:handoffType:)playAnimation(_:transitionDuration:startsPaused:)stopAllAnimations(recursive:)defaultAnimationClockparametersEntity.ParameterSetplayAnimation(named:transitionDuration:startsPaused:recursive:)bindableValuessubscript(_:)