The Array Element output from the For Each Loop node does not provide the values of all the elements present in my scene.

“Shouldn’t the Array Element output of the For Each Loop node normally provide the values of all elements in the array from my scene? For some reason, it’s only giving the value of a single actor, and I am sure the array contains more than one element. How can I solve this issue?”

How did you come to the conclusion that it doesn’t cycle through all of the contents of the array? :thinking: Could you show us your debugging method and the result? Also, could you show the actors that are supposed to be the selected class from the Outliner window? And what happens when you directly plug the Out Actors pin into the Array pin?

“I connected a Print String node to the Array Element output to check if it iterates through all the contents of the array, but it only gives one output. When I try to get the position of the actor from that output, it again gives just one value.”

The actors that should belong to the selected class in the Outliner window are as follows."
Ekran görüntüsü 2024-12-07 221005

And I did not understand what you said last."

What happens when you take the Out Actors output pin of the Get All Actors of Class node, and instead of plugging it into your array, you plug it into the Array input pin of the For Each Loop node?

When I do what you said, I get the same value as the previous one.

When you print the length of the output pin of your “get all actors of class”, does it print 4?