mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-17 12:40:11 +00:00
fix
This commit is contained in:
@@ -108,7 +108,7 @@ namespace Cysharp.Threading.Tasks
|
||||
|
||||
#if UNITY_EDITOR
|
||||
// force use Realtime.
|
||||
if (!UnityEditor.EditorApplication.isPlaying)
|
||||
if (PlayerLoopHelper.IsMainThread && !UnityEditor.EditorApplication.isPlaying)
|
||||
{
|
||||
delayType = DelayType.Realtime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user