PrimeTween and UniTask combination #198
-
|
When I use DOTween, I often use it with UniTask to convert the Tween into an async UniTask for some special cases for optimizing runtime performance and more elegant code. Within PrimeTween, can I combine it with UniTask again? If yes, can you show me best practices for this combination, including CancellationToken if needed in some special cases? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey, PrimeTween does support But PrimeTween doesn't currently support cancellation tokens. #80 (comment) I'll consider adding CancellationToken support in the future, as there are many requests for it. Also, Unity's custom Awaitable type already supports CancellationToken, which means it's becoming a standard part of Unity engine. |
Beta Was this translation helpful? Give feedback.
Hey, PrimeTween does support
asyncout of the box, and you can await tweens and sequences directly.But PrimeTween doesn't currently support cancellation tokens. #80 (comment)
I'll consider adding CancellationToken support in the future, as there are many requests for it. Also, Unity's custom Awaitable type already supports CancellationToken, which means it's becoming a standard part of Unity engine.