Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

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

Open
wewrere41 opened this issue Sep 12, 2022 · 0 comments · May be fixed by #529
Open

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

wewrere41 opened this issue Sep 12, 2022 · 0 comments · May be fixed by #529

Comments

@wewrere41
Copy link

wewrere41 commented Sep 12, 2022

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant