Skip to content

Right way to migration from LeanTween #125

Closed Answered by nuskey8
fidarit asked this question in Q&A
Discussion options

You must be logged in to vote

LitMotion does not have an API equivalent to DelayedCall. This is by design.

I don't think DelayedCall is a feature that a tween library should have. The tween library's responsibility is to implement animations using value interpolation and easing, and is not intended for asynchronous processing. Additionally, delayed processing using callbacks is not the preferred method as it makes exception handling and cancellation difficult. These asynchronous operations should be done with async/await (UniTask is probably the best option).

However, if your purpose is simply to migrate from LeanTween, I think your method is fine. It should work correctly.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@fidarit
Comment options

Answer selected by fidarit
Comment options

You must be logged in to vote
1 reply
@nuskey8
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants