Async workflow #45
-
Hi, first of all, thanks for the amazing library! Everything is well thought out. I am migrating from DOTween but have some problems migrating async methods. Is there a way to return a tween like With DoTween, I was returning like
I know there are workarounds like checking the position before calling this method but I have many methods like this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I’m glad you’re enjoying PrimeTween! I assume you’re looking for a way to return an “empty” or “dead” tween, right? Then you can simply write ‘return default;’ or ‘return new Tween();’, which are identical operations. You can safely await dead tweens, but it’s not allowed to add dead tweens to a sequence. |
Beta Was this translation helpful? Give feedback.
I’m glad you’re enjoying PrimeTween!
I assume you’re looking for a way to return an “empty” or “dead” tween, right? Then you can simply write ‘return default;’ or ‘return new Tween();’, which are identical operations.
You can safely await dead tweens, but it’s not allowed to add dead tweens to a sequence.