Open ovieira opened 1 month ago
When using the following code:
await screenEnterSequencerController.PlayAsync();
UniTask throws the warning:
yield Coroutine is not supported on await IEnumerator or IEnumerator.ToUniTask(), please use ToUniTask(MonoBehaviour coroutineRunner) instead.
As a result of this warning, it is not possible to await the completion of the animation. The only workaround I found is:
await screenEnterSequencerController.PlayEnumerator().ToUniTask(this);
I’m using Unitask v2.5.5.
When using the following code:
await screenEnterSequencerController.PlayAsync();
UniTask throws the warning:
yield Coroutine is not supported on await IEnumerator or IEnumerator.ToUniTask(), please use ToUniTask(MonoBehaviour coroutineRunner) instead.
As a result of this warning, it is not possible to await the completion of the animation. The only workaround I found is:
await screenEnterSequencerController.PlayEnumerator().ToUniTask(this);
I’m using Unitask v2.5.5.