UniRx icon indicating copy to clipboard operation
UniRx copied to clipboard

TimeScale doesnt effect to Observable.Timer(Scheduler.MainThread)

Open wewrere41 opened this issue 2 years ago • 0 comments

void Test()
{
Time.timeScale = 0;
Debug.Log(Time.time);

Observable.Timer(TimeSpan.FromSeconds(5), Scheduler.MainThread)
      Subscribe(_ =>
                    { 
                        Debug.Log(Time.time);
                    });

}

Timer doesn't stop although TimeScale=0. And ofcourse two Time.time log return same result.

wewrere41 avatar Sep 12 '22 14:09 wewrere41