We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_main_animation
AnimationTransitions
1 parent 1d907c5 commit ce5254eCopy full SHA for ce5254e
crates/bevy_animation/src/transition.rs
@@ -93,6 +93,11 @@ impl AnimationTransitions {
93
self.main_animation = Some(new_animation);
94
player.start(new_animation)
95
}
96
+
97
+ /// Obtain the currently playing main animation.
98
+ pub fn get_main_animation(&self) -> Option<AnimationNodeIndex> {
99
+ self.main_animation
100
+ }
101
102
103
/// A system that alters the weight of currently-playing transitions based on
0 commit comments