Function amethyst_animation::pause_animation
[−]
[src]
pub fn pause_animation(
controls: &mut WriteStorage<AnimationControl>,
animation: &Handle<Animation>,
entity: Entity
)
Pause the running animation on the given entity.
Parameters:
controls
: animation control storage in the world.animation
: handle to the animation to runentity
: entity the animation is running on. Must either have anAnimationHierarchy
that matches theAnimation
, or only refer to a single node, else the animation will not be run.