pub struct AnimationFinished {
pub entity: Entity,
pub clip: Handle<Clip>,
}Expand description
A clip that plays once reached its end in this frame: nadir::animate
sends it, first in the frame stage Animate.
Frame systems after it read it with Events::frame_events. Fixed
systems never see it: the next tick clears its tick buffer before they
run. Its readers run in frames, so whatever they spawn, despawn, add or
remove lands at a tick that depends on frame timing: change gameplay
state (what replays and the world hash reproduce, roadmap M4.7) by tick
counts in fixed systems instead.
Fields§
§entity: EntityThe entity whose animator finished.
clip: Handle<Clip>The clip that finished.
Trait Implementations§
Source§impl Clone for AnimationFinished
impl Clone for AnimationFinished
impl Copy for AnimationFinished
Source§impl Debug for AnimationFinished
impl Debug for AnimationFinished
impl Eq for AnimationFinished
Source§impl PartialEq for AnimationFinished
impl PartialEq for AnimationFinished
impl StructuralPartialEq for AnimationFinished
Auto Trait Implementations§
impl Forget for AnimationFinished
impl Freeze for AnimationFinished
impl Move for AnimationFinished
impl RefUnwindSafe for AnimationFinished
impl Send for AnimationFinished
impl Sync for AnimationFinished
impl Unpin for AnimationFinished
impl UnsafeUnpin for AnimationFinished
impl UnwindSafe for AnimationFinished
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more