From e8b931d7753a331e540838031b114a93c6a1ef94 Mon Sep 17 00:00:00 2001 From: Hilpogar Date: Wed, 6 May 2026 11:04:42 +0200 Subject: [PATCH] expose private fields in ActiveAnimation --- crates/bevy_animation/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 99820fba96c16..b61bb2077d5dd 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -630,6 +630,16 @@ impl ActiveAnimation { self.elapsed } + /// Returns the last seek time of the animation. + pub fn last_seek_time(&self) -> Option { + self.last_seek_time + } + + /// Returns true if the animation was completed at least once this tick. + pub fn just_completed(&self) -> bool { + self.just_completed + } + /// Returns the seek time of the animation. /// /// This is nonnegative and no more than the clip duration.