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

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