Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.34k stars 351 forks source link

How DOTween.ManualUpdate works? #666

Open mecadiego113 opened 9 months ago

mecadiego113 commented 9 months ago

Hello everyone!

I'm trying to achieve a rough (non-smooth) result with tweens executing manual updates. What I'm doing is using coroutines for that:

private IEnumerator UpdateTweens()
{
    yield return new WaitForSeconds((float)1 / (framesPerSecond / 2));
    DOTween.ManualUpdate((float)1 / framesPerSecond / 2, (float)1 / framesPerSecond / 2);

    StartCoroutine(UpdateTweens());
}

But I don't fully understand the two parameters of the ManualUpdate method: this result the tweens to run faster or slower, but not more rough.

Can you help me?