Added get_main_animation
for AnimationTransitions
(#14104)
# Objective Added a getter for the main animation of `AnimationTransitions`. ## Solution Added `get_main_animation` for `AnimationTransitions`.
This commit is contained in:
parent
24fdad3a36
commit
309c224ca8
@ -93,6 +93,11 @@ impl AnimationTransitions {
|
|||||||
self.main_animation = Some(new_animation);
|
self.main_animation = Some(new_animation);
|
||||||
player.start(new_animation)
|
player.start(new_animation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Obtain the currently playing main animation.
|
||||||
|
pub fn get_main_animation(&self) -> Option<AnimationNodeIndex> {
|
||||||
|
self.main_animation
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A system that alters the weight of currently-playing transitions based on
|
/// A system that alters the weight of currently-playing transitions based on
|
||||||
|
Loading…
Reference in New Issue
Block a user