Reply To: Node with Coroutines

Forums 💬 FlowCanvas ⚙️ Support Node with Coroutines Reply To: Node with Coroutines

#21665
Gavalakis
Keymaster

    Hello again and thanks for getting FlowCanvas! 🙂

    The allocation from the Queue instantiation can certainly be avoided (I will take care of that soon), but as for the allocation caused by the Unity StartCouroutine call, I don’t think that there is much that can be done here unfortunately :/

    Regarding making a delay without coroutines, it is possible to an extend, although not as flexible as using coroutines in the same way that LatentActionNodes do. I have attached for you here an example node called “SimpleDelay” (unitypackage), that is created without coroutines, but rather by utilizing “IUpdatable.Update” (an inteface that nodes can implement if need be).

    Please let me know if that is something that would work for you. I don’t know whether I add such node officially, but you can definetely keep it as a custom node if it does indeed work for you.

    Thanks!