Skip to content

Rabbival/bevy_tween_helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevy_tween_helpers

Optional, additional utilities for the bevy_tween

Using The Crate

  • First, you should add BevyTweenHelpersPlugin, to which you can add a logging function of your choice.

  • Then, register each of the following plugins for each interpolator type you wish to apply them to:

  • A non generic plugin that you might useful is TweenSkipTaggerPlugin, which would listen to skip-tag requesting, allowing you to skip entire animations instead of tagging each tween in them

  • I also added my tween combinators, feel free to open PRs requesting to add your own!

Example

An example for registering the plugins into your app would be:

    app.add_plugins((
            DefaultTweenPlugins, //from bevy_tween
            BevyTweenHelpersPlugin::default(),
            TweenTargetRemover::<MyGloriousInterpolator>::default(),
            TweenPriorityHandler::<MyGloriousInterpolator>::default(),
            AnimationParentDestroyerGenericPlugin::<MyGloriousInterpolator>::default(),
            EventAnimationParentTaggerPlugin,
            TweenSkipTaggerPlugin
        ))
        .add_tween_systems(component_tween_system::<MyGloriousInterpolator>()); //from bevy_tween

Bevy Version Support

bevy bevy_tween_helpers
0.17 0.2 - 0.4
0.16 0.1

Credits

About

Optional, additional utilities for the bevy_tween crate

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages