mirror of https://github.com/Cysharp/UniTask
fix
parent
7ac9853cf6
commit
841b6e85ae
|
@ -108,7 +108,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
// force use Realtime.
|
// force use Realtime.
|
||||||
if (!UnityEditor.EditorApplication.isPlaying)
|
if (PlayerLoopHelper.IsMainThread && !UnityEditor.EditorApplication.isPlaying)
|
||||||
{
|
{
|
||||||
delayType = DelayType.Realtime;
|
delayType = DelayType.Realtime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue