Reply To: How to make latent nodes from a coroutine?

FlowCanvas Forums Support How to make latent nodes from a coroutine? Reply To: How to make latent nodes from a coroutine?

#3099
Gavalakis
Keymaster

Hello,

At least right now, IEnumerator methods are not treated in any special way, so they are not automatically treated as a Coroutine (even though that would be a good idea to add 🙂 ).

However, you could create a wrapper ‘Latent Action Node’ for your IEnumerator method like in the example bellow:

In the code above we simply wrap an IEnumerator method (CoroutineTest.TestCoroutine) in a FlowCanvas Latent Action Node and have the Invoke method of that node simply ‘yield return’ the started Coroutine from the IEnumerator method.

Let me know if something like the above works for you.
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh