Hello!
[Unity 5.2.0, DOTween 1.0.830]
I found a bug with sequence loops. You can reproduce it using this sample.
Create scene with a button, add code and OnClick delegate:
using UnityEngine;
using DG.Tweening;
using Debug = UnityEngine.Debug;
public class Sandbox : MonoBehaviour
{
private int m_counter;
public void OnClick()
{
Debug.Log("Sandbox OnClick");
m_counter = 0;
DOTween.Sequence()
.AppendCallback(() =>
{
Debug.Log("Iteration: " + ++m_counter);
})
.AppendInterval(0.5f)
.SetLoops(5)
;
}
}
Run it, tap button and see output in the log:
Sandbox OnClick
Iteration: 1
Iteration: 2
Iteration: 3
Iteration: 4
Iteration: 5
All works as expected now. But set 100 in Project Settings -> Time -> Time Scale and run scene again:
Sandbox OnClick
Iteration: 1
Iteration: 2
Some iterations are disappeared!
You can get this behavior not only when playing with high time scale, but also when you got low fps peak in the real game.
Could you please provide fix?