When does DOTween.To() happen in Unity's "Order of execution for event functions"

2.1k Views Asked by At

I have read Unity's Order of execution for event functions.
Now I want to use DOTween.
So I have a question. When does DOTween.To() happen in Unity's "Order of execution for event functions"?
Does it happens in "Update" or "yield return null" or other event?

1

There are 1 best solutions below

1
On BEST ANSWER

You can simply look this up in the source code

DOTween doesn't use Coroutines in the background but rather reproduces their behavior itself.

Basically it is happening in TweenManager.Update which is called by the DOTweenComponent in multiple places (Update, LateUpdate and FixedUpdate)

So basically it depends which update type a certain Tweener uses which is what is returned by DOTween.To