How do you iterate through an Array of actors that are not in world?

I have 5 cards not placed anywhere in the level, I tried Get All Actors of Class, but it always returns none, I assume because there are no actors of that type within the world. Must I drag every card into the world somewhere in order to get a reference to it via blueprint?

That works! Thanks. Though I was hoping there was a way to iterate through them without having to place each into an array manually. It’s fine with 5 cards, but tedious if you want 60+ cards in game. This’ll work though. Thank you again!

Hey Counterpart0,

You have 2 options. Depending on your setup, either solution should work well for you.

First option is Make Array, which will return an array of your 5 cards. From there you can ForEachLoop, through all of your elements.

Second options is Array Variable, which will contain your 5 cards or as many as you need. So you need to create a Variable, and set the Type to your Cards. Next to Type, there is a checkers box which turns that variable into an Array Variable. From there you pull that Array Variable into the Event Graph, and add your Cards to it as noted within the Option 2 Box. So pick from the Array Variable, find the function Add, then pick a Card to the Variable slot of the Add. From there you can create use that Variable Array, and a ForEachLoop to cycle through all available Cards.

I hope that helps!

Peace