Replies: 1 comment 5 replies
-
You're right, there is currently no SetID() API in PrimeTween. I thought about this API for a long time and didn't find good use cases for it. For the majority of use cases, people use SetID() to stop tweens before destroying objects. But with PrimeTween, you don't have to think about stopping tweens before destroying objects or unloading a scene. The suggested way to stop tweens/sequences in PrimeTween is to store the Tween/Sequence reference and call the If you have a good real-world example of SetID() usage, please share it with me. I'm all for adding new features and APIs, but I'd like to understand first if the benefits outweigh the added complexity. |
Beta Was this translation helpful? Give feedback.
-
With DoTween, I like to orginize my tweens and sequences with an ID whenever I'm calling one, usually as int, and call DoTween.Kill(id) when I need to kill all tweens with the given ID.
Currently, with PrimeTween, I've found to kill/stop tweens only with specific target which is usually the unity object. I could add PrimeTween to my project without hesitate if there was a way to set tweens' and sequences' ids then be able to stop those specific ones on demand so long as this id resets on stop and complete.
I'd really appreciate this feature if you could manage to add it.
Beta Was this translation helpful? Give feedback.
All reactions