pub fn asset_animator_system<T: Asset>(
    time: Res<'_, Time>,
    assets: ResMut<'_, Assets<T>>,
    query: Query<'_, '_, (Entity, &Handle<T>, &mut AssetAnimator<T>)>,
    events: ResMut<'_, Events<TweenCompleted>>
)
Expand description

Animator system for assets.

This system ticks all AssetAnimator<T> components to animate their associated asset.

This requires the bevy_asset feature (enabled by default).