diff --git a/crates/bevy_animation/src/transition.rs b/crates/bevy_animation/src/transition.rs index 1f3baf5478..03c05f78c4 100644 --- a/crates/bevy_animation/src/transition.rs +++ b/crates/bevy_animation/src/transition.rs @@ -93,6 +93,11 @@ impl AnimationTransitions { self.main_animation = Some(new_animation); player.start(new_animation) } + + /// Obtain the currently playing main animation. + pub fn get_main_animation(&self) -> Option { + self.main_animation + } } /// A system that alters the weight of currently-playing transitions based on