pub fn animation_player(
    time: Res<'_, Time>,
    animations: Res<'_, Assets<AnimationClip>>,
    children: Query<'_, '_, &Children, ()>,
    names: Query<'_, '_, &Name, ()>,
    transforms: Query<'_, '_, &mut Transform, ()>,
    parents: Query<'_, '_, (Option<With<AnimationPlayer>>, Option<&Parent>), ()>,
    animation_players: Query<'_, '_, (Entity, Option<&Parent>, &mut AnimationPlayer), ()>
)
Expand description

System that will play all animations, using any entity with a AnimationPlayer and a Handle<AnimationClip> as an animation root