Skip to content

Proper way of handling a float variable. #113

Answered by KyryloKuzyk
PapitoPapito asked this question in FAQ
Discussion options

You must be logged in to vote

Hey!

  1. Yes, this is the correct way to do custom animations. You can also improve it slightly by removing the memory allocation inside the delegate: https://github.com/KyryloKuzyk/PrimeTween?tab=readme-ov-file#zero-allocations-with-delegates
  2. No, you don't have to unsubscribe from custom animations. The delegate is cleared automatically upon animation completion.
  3. The tween is stored in the list inside PrimeTweenManager and you debug all currently running tween if you select this object in the Inspector: https://github.com/KyryloKuzyk/PrimeTween?tab=readme-ov-file#debugging-tweens
    You don't have to Kill() tweens in PrimeTween, they are removed from the list automatically upon completion. You…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KyryloKuzyk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants