You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set_completed_event/with_completed_event are currently only available on the Tween type. It'd be nice to have them on any Tweenable, but especially on the compound ones: Sequence and Tracks.
My current workaround for this is to attach the completion to the last tweenable in sequence. This is pretty awkward, because you have to do it before you type-erase it, e.g.:
This also doesn't work if the last tweenable is Delay. For that case, you need to turn your Sequence into Tracks, with a parallel Tween that does nothing but provide the completion event. This might require a custom NoopLens<T: Component> type.
All in all, pretty messy. Having set_completed_event on more tweenable types would eliminate the need for tricks like this.
The text was updated successfully, but these errors were encountered:
set_completed_event
/with_completed_event
are currently only available on theTween
type. It'd be nice to have them on anyTweenable
, but especially on the compound ones:Sequence
andTracks
.My current workaround for this is to attach the completion to the last tweenable in sequence. This is pretty awkward, because you have to do it before you type-erase it, e.g.:
This also doesn't work if the last tweenable is
Delay
. For that case, you need to turn yourSequence
intoTracks
, with a parallelTween
that does nothing but provide the completion event. This might require a customNoopLens<T: Component>
type.All in all, pretty messy. Having
set_completed_event
on more tweenable types would eliminate the need for tricks like this.The text was updated successfully, but these errors were encountered: