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"

Getting all actors in a particular order

What is the "getting" method in UE4 of actors in a scene (either for copies of one blueprint, or multiple blueprints added)?

When, for example, I create three blueprints with the same interface that each hold one of three different meshes and name the blueprints in numerical order (BP_01, BP_02, and BP_03) and name the meshes in numerical order, I then use a Get All Actors With Interface node, and find that UE4 got them in a different order than they were named or created, such as BP_01, then BP_03, then BP_02.

Or in the case of multiple copies of one blueprint in a scene (eg. for BP_01; three copies named by UE4: BP_0101, BP_0102, and BP_0103) it would Get All Actors of Class in no particular order either.

Is there a way of getting them in order? When working with large numbers of blueprints it can be frustrating trying to perform any sequential actions. Or if anyone knew of a less time intensive workaround other than referencing each Actor in a variable, I would appreciate it.

Product Version: UE 4.10
more ▼

asked Dec 30 '15 at 07:50 PM in Blueprint Scripting

avatar image

Load Time
29 2 4 9

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

1 answer: sort voted first

No. You'll have to order the array yourself. Easy in c++... not so much in BP.

more ▼

answered Dec 30 '15 at 08:04 PM

avatar image

1.7k 81 28 81

avatar image Elggetto Mar 12 '19 at 04:45 PM

I'm interested in the answer. Can you point me in the right direction if I would like to do this?

(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