From 089a50966362f93140dba20889d086b5c0cdfa01 Mon Sep 17 00:00:00 2001 From: Yoshifumi Kawai Date: Wed, 23 Sep 2020 17:16:09 +0900 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1aadc1c..a3f65c4 100644 --- a/README.md +++ b/README.md @@ -796,9 +796,11 @@ IEnumerator.ToUniTask limitation --- You can convert coroutine(IEnumerator) to UniTask(or await directly) but has some limitations. -* `WaitForEndOfFrame`/`WaitForFixedUpdate` is not supported, used `yield return null` instead. +* `WaitForEndOfFrame`/`WaitForFixedUpdate`/`Coroutine` is not supported. * Consuming loop timing is not same as StartCoroutine, it is used specified PlayerLoopTiming, and default's `PlayerLoopTiming.Update` is run before MonoBehaviour's Update and StartCoroutine's loop. +If you want to convert fully compatible from coroutine to async, use `IEnumerator.ToUniTask(MonoBehaviour coroutineRunner)` overload. It executes StartCoroutine on an instance of the argument MonoBehaviour and waits for it to complete in UniTask. + For UnityEditor --- UniTask can run on Unity Edtitor like Editor Coroutine. However, there are some limitations.