mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-23 16:20:21 +00:00
fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user