Page 1 of 1

custom SequencerCommand's coroutine question

Posted: Wed Mar 31, 2021 1:22 am
by fkkcloud
Hello,

I have a custom SequencerCommand script that starts a coroutine.
The coroutine seems to stop in the mid of it when its dialogue node continues to the next node.

I tried to put

Code: Select all

required
to have the coroutine finishes its whole line of coroutine function but it does stop in the mid as well.

What would be the best way to let the Coroutine finishes what it started no matter when the dialogue node gets continued.

Thank you,

Edit: I have run the coroutine in a gameObject that is a bit more persistent than dialogueNode itself so I solved it but hope to hear any alternative/ideal solution that you can suggest.

Re: custom SequencerCommand's coroutine question

Posted: Wed Mar 31, 2021 8:15 am
by Tony Li
By design, the Dialogue System stops all sequencer commands when it stops the dialogue entry node and moves to the next one.

Your solution to kick off the coroutine on a separate GameObject or a separate script is correct.