pub trait AnimationEvent: Clone + for<'a> Event<Trigger<'a> = AnimationEventTrigger> { }Expand description
An Event that an AnimationPlayer or an AnimationTargetId can trigger when playing an AnimationClip.
- If you used
AnimationClip::add_event, this will be triggered by theAnimationPlayer. - If you used
AnimationClip::add_event_to_target, this will be triggered by theAnimationTargetId.
This trait can be derived.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.