x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What is Sequence good for?

I've seen many times that in official Unreal tutorials, they use Sequence flow control.

Can someone tell me how that is different from normal execution order?

I mean, for example, what difference is there between the following?

Event Begin Play->Create Widget X->Add to Viewport(X)->Create Widget Y->Add to Viewport(Y)

and

Event Begin Play -> Sequence Output 1 -> Create Widget X -> Add to Viewport(X)

..............................Sequence Output 2 -> Create Widget Y -> Add to Viewport(Y)

Will there be a difference in execution order? If yes, how?

Also, are there advantages or disadvantages of using one or the other, or is it just a matter of preference?

Product Version: Not Selected
Tags:
more ▼

asked Apr 28 '16 at 10:20 AM in Blueprint Scripting

avatar image

tendo23
37 6 8 12

avatar image Jacky Apr 28 '16 at 11:02 AM

They are both the same. Sequence helps you keep things tidier. Keep in mind that there is execution order in sequence pins so, for instance, you may not want to Set a variable with Pin 2 if you need it in a function at Pin 1.

avatar image tendo23 Apr 28 '16 at 01:09 PM

Obviously. That's what I thought. I just wanted to make sure that it's only a matter of preference. Thanks for your answer

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

One thing i would like to mention is that Sequence dont respect latent functions. For example, if you have a Delay node on Pin 1, Sequence dont bother waiting for that delay to finish. It will immediately run Pin 2.

For example, the below sequence will cause Accessed None Error:

alt text

where as this one works:

alt text

more ▼

answered Apr 28 '16 at 03:42 PM

avatar image

ryanjon2040
1.6k 56 43 93

avatar image Orion_78 Nov 24 '17 at 02:49 PM

I am wondering, is this also happening if the sequence node 1 have a very long execution ? Will sequence 2 wait for the very long execution, or will it be executed before ?

avatar image Nachtmahr Nov 24 '17 at 11:23 PM

It will wait until 1 is done. Latent functions are a exception since they basicly end the execution flow and continue at a later point. But everything else will execute in order no matter how long it takes.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I normally use them for Boolean checks in a function with a single return node, an example would be to use one function for a range of things like a pickup, have the Sequence goes though each type, ammo, health, power ups and so on, then have the last execution return which item it is, there great as you only need the one return node depending on your logic needs.

more ▼

answered Apr 28 '16 at 04:54 PM

avatar image

OverRated_AU
167 7 15 28

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question