Demigiant

DOTween OnUpdate example

Sep 21st, 2021
775
145 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void SomeMethod()
  2. {
  3.     Tween tween = GetComponent<DOTweenPath>().GetTween();
  4.     tween.OnUpdate(MyCallback);
  5. }
  6.  
  7. void MyCallback()
  8. {
  9.     Debug.Log("Called every frame while the tween plays");
  10. }
RAW Paste Data