Skip to content

Conversation

@adsick
Copy link

@adsick adsick commented Nov 22, 2025

The motivation is that in our project we use this construct

.spawn(...)
.observe(|trigger: On<AnimCompletedEvent>, mut commands: Commands| {
    commands.entity(trigger.event().event_target()).try_despawn();
});

to despawn entities when animation completes, but current implementation in bevy_tweening expects that entity exists. I'm a little puzzled by the fact that our observer runs before your component cleanup, but this PR fixes it anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant