# Get all actor of class with more than one objects

**URL:** <https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575>\
**Category:** Blueprint\
**Tags:** actor, foreachloop, unreal-engine, Blueprint, question, actor-class\
**Created:** [March 31, 2025, 5:52pm UTC](https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575 "2025-03-31T17:52:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Raven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dr.raven/32/1224318_2.png) [@Dr.Raven](https://forums.unrealengine.com/u/Dr.Raven)\
**Post date:** [March 31, 2025, 5:52pm UTC](https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575/1 "2025-03-31T17:52:01Z")

</div>

Hello everyone! I’ve run into the problem in my project that no matter how much I call Get all actor of class and then For each loop, it only marks one dropped object and not all of them. (in short, it’s a scanner that marks multiple objects)  
Does anyone have any ideas?

 ![Képernyőkép 2025-03-31 194337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/d/a3da4b1a8d8d26fa68ae83eb73b3b7b333e436cc.png)  
 ![Képernyőkép 2025-03-31 194417](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/2/3e2f4e6429159f5638948dbb3a62747eaeb67c4b.png)

---

<div class="post-metadata">

**Author:** ![MagForceSeven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/magforceseven/32/906563_2.png) [@MagForceSeven](https://forums.unrealengine.com/u/MagForceSeven)\
**Post date:** [March 31, 2025, 7:00pm UTC](https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575/2 "2025-03-31T19:00:05Z")

</div>

It’s because of that `Delay` node that you have, it’s not doing what you think it is. Your loop runs over all the objects triggering the delay. But then when the delay’s complete triggers `Array Element` will always be the last one. `Array Element` isn’t saved and restored in any way to make the graph state be the same as it was when the `Delay` started.

To do this sort of thing, you’d have to make the loop manually, doing a the length and counting your current index and having a physical loop back to the start once you’ve handled one actor. Or use a timer to handle one actor before setting the timer again until you handle all the elements of the array.

---

<div class="post-metadata">

**Author:** ![Dr.Raven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dr.raven/32/1224318_2.png) [@Dr.Raven](https://forums.unrealengine.com/u/Dr.Raven)\
**Post date:** [March 31, 2025, 8:31pm UTC](https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575/3 "2025-03-31T20:31:31Z")

</div>

Thank You so much! Have a nice day!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 30, 2025, 8:31pm UTC](https://forums.unrealengine.com/t/get-all-actor-of-class-with-more-than-one-objects/2432575/4 "2025-04-30T20:31:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
