brunomikoski / Animation-Sequencer

A visual tool that allows you to create animated sequences of tweens and tweak them on editor time.
MIT License
960 stars 116 forks source link

Unable to Await PlayAsync UniTask #80

Open ovieira opened 1 month ago

ovieira commented 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.