pub fn component_animator_system<T: Component>(
    time: Res<'_, Time>,
    query: Query<'_, '_, (Entity, &mut T, &mut Animator<T>)>,
    events: ResMut<'_, Events<TweenCompleted>>
)
Expand description

Animator system for components.

This system extracts all components of type T with an Animator<T> attached to the same entity, and tick the animator to animate the component.