From e4ec477b3af738c346f07a41cbfda047516ed885 Mon Sep 17 00:00:00 2001 From: mnmaita <47983254+mnmaita@users.noreply.github.com> Date: Thu, 9 Oct 2025 09:02:14 +0200 Subject: [PATCH] Derives EntityEvent for AnimCompletedEvent --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5b83756..36decce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1712,7 +1712,7 @@ impl<'a> EntityCommandsTweeningExtensions<'a> for EntityCommands<'a> { } /// Event raised when a [`TweenAnim`] completed. -#[derive(Debug, Clone, Copy, Event, Message)] +#[derive(Debug, Clone, Copy, EntityEvent, Message)] pub struct AnimCompletedEvent { /// The entity owning the [`TweenAnim`] which completed. /// @@ -1720,6 +1720,7 @@ pub struct AnimCompletedEvent { /// can't be queried anymore with this entity. You can prevent a completed /// animation from being automatically destroyed by /// setting [`TweenAnim::destroy_on_completion`] to `false`. + #[event_target] pub anim_entity: Entity, /// The animation target. ///