bevy_tweening icon indicating copy to clipboard operation
bevy_tweening copied to clipboard

Bevy Event/Callback Example

Open Trequetrum opened this issue 3 years ago • 5 comments

The docs show 4 features front and center for this crate.


The first three are all well covered by the examples you have, but

Raise a Bevy event or invoke a callback when an tween completed

is not. At least one example per major feature would be nice :)

Trequetrum avatar May 02 '22 14:05 Trequetrum

There's an event example in examples/sequence.rs.

djeedai avatar May 14 '22 19:05 djeedai

This issue can probably be closed.

SUPERCILEX avatar Jul 03 '22 02:07 SUPERCILEX

I'm conflicted. @Trequetrum has a point here, that feature is highlighted but there's no discoverable way to find an example for it. On the other hand there do is an example, if one manages to find it.

djeedai avatar Jul 10 '22 00:07 djeedai

Fair point. A use case I've run into for events is despawning upon completion. Maybe an example could be created around that?

SUPERCILEX avatar Jul 10 '22 04:07 SUPERCILEX

Yes, because that's also a feature that has been requested, so showing how to achieve it is valuable.

djeedai avatar Jul 10 '22 11:07 djeedai