TweenCommand

Trait TweenCommand 

Source
pub trait TweenCommand: EntityCommand {
    // Required methods
    fn config(&self) -> &TweenConfig;
    fn config_mut(&mut self) -> &mut TweenConfig;
}
Expand description

Helper trait to abstract a tweening animation command.

This is mostly used internally by the AnimatedEntityCommands to tweak the current animation, while also abstracting the various commands used to implement the EntityCommandsTweeningExtensions. In general, you probably don’t have any use for that trait.

Required Methods§

Source

fn config(&self) -> &TweenConfig

Get read-only access to the tween configuration of the command.

Source

fn config_mut(&mut self) -> &mut TweenConfig

Get mutable access to the tween configuration of the command.

Implementors§