I am converting blueprint script to c++ and I have a problem with sequence node
What is sequence node in c++ ?
Is sequence node like thread?
Can I use thread?
There is no need to have an equivalent node for a sequence in C++. The Sequence node in Blueprint just runs statements in the order of the execution pins of the sequence node, one after the other. If one is finished, the next is run. So its like code lines in C++.
This is useful to get blueprints organized, instead of having nodes expanding to an endless chain towards right side of the editor canvas.
I just made a [quick and dirty example][2] for you. As you will see, it first outputs 30001 and after the loop is finished, the next pin is run multiplying that by 2.
If you place async nodes like “delay” behind a Then X exec pin, things look different, because once an async event is triggered, the sequence node considers this as finished and continues to the next execution pin.