How can I find all blueprints of a certain type in a scene?

I have a blueprint - a cover obstacle.

In my level blueprint I want to add them all to a big array when game starts. How can I do this?

You can use “Get all actors of class” node for this. Performance will depend on how many actors you have in your scene, I think it can be a sort of expensive operation.

Hey SirYakalot,

Get All Actors of Class node outputs an array, so this is a fairly easy setup:

As mentions, this can be slightly performance heavy if you have many instances of specified class in your level, so you wouldn’t want to do this kind of thing in an Event Tick or in a function. On Event Begin Play, though, it shouldn’t cause a noticeable problem.

Hope that helps!