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"

Is there a way to list Blueprint components?


I'm working on a blueprint that consist dozens of rather simple particle systems.Those are separate because I want to have full access to their rotation, location and ability to be hidden at the right moment to get the the best outcome.

These components have many common functions in the blueprint and to avoid a lot of unnecessary work I was wondering if there was a way to get a list or create a list that would include all those dozens of components? I would like to use that list in a loop that would spare me of having to add the same nodes for each and every of of the particle systems over and over again.

Any ideas appreciated!

Just to make sure we are on the same page, I mean these components that you can find at the left corner.

alt text

Product Version: UE 4.8
more ▼

asked Sep 03 '15 at 05:27 PM in Blueprint Scripting

avatar image

1 1 2 5

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

2 answers: sort voted first

Create an array variable of type Particle System Reference

Then either add the particle files to the array or use the Add node to add all those particles to it on EventBeginPlay or some similar event.

This array willnow allow you to manipulate all of them individually (index 0 = particle1 so Get(1) node would work on 'particle1') or you can use a for/foreach/while loop to do things to all of them.

Edit: sorry your variable type should be particle sytem component reference

With that many particle system components you might want to create a function that takes in a particle system component and adds it to your array so that you dont have to connect 2 wires for each one, only 1.


alt text

more ▼

answered Sep 03 '15 at 05:36 PM

avatar image

1.8k 67 27 137

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

If the components/child objects can change dynamically, you can also the Get Children Components or Get Components By Class nodes to get an array of all matching objects.

alt text

more ▼

answered Sep 03 '15 at 05:57 PM

avatar image

1.8k 69 28 114

avatar image Halavanhelev Sep 04 '15 at 09:55 AM

I mixed this with a custom for-each-loop so I that I managed to get the delay in the loop and everything works fine. Thank you for the help!

(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