Do something at the end of the animation #48
-
How would you do something a the end of the animation? (like despawn the entity) |
Beta Was this translation helpful? Give feedback.
Answered by
Multirious
Feb 14, 2025
Replies: 1 comment
-
3 ways:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rockson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3 ways:
TimeRunnerEnded
eventTweenEvent<D>
event viabevy_tween::combinator::event*
. Note that you also have to register the plugin. Then you can add the event to your animation and read them.TimeSpanProgress
. It will only be inserted for 1 frame if the span length is 0.Then define its animation constructor. You can see how to make one from the above function's source. This work the same way as
TweenEvent
's system.