# How to get all actors of class in all loaded levels?

**URL:** <https://forums.unrealengine.com/t/how-to-get-all-actors-of-class-in-all-loaded-levels/312676>\
**Category:** World Creation\
**Tags:** unreal-engine, streaming, question, Blueprint\
**Created:** [March 26, 2015, 11:39am UTC](https://forums.unrealengine.com/t/how-to-get-all-actors-of-class-in-all-loaded-levels/312676 "2015-03-26T11:39:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [March 26, 2015, 11:39am UTC](https://forums.unrealengine.com/t/how-to-get-all-actors-of-class-in-all-loaded-levels/312676/1 "2015-03-26T11:39:35Z")

</div>

My game state attempts to assemble a list of all actors of a given class. Unfortunately it seems that the GetAllActorsOfClass node only considers the persistent level so actors on the loaded levels are overlooked. How could I get all the actors on all loaded levels?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_21a58d97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_21a58d97](https://forums.unrealengine.com/u/anonymous_user_21a58d97)\
**Post date:** [August 17, 2015, 10:15pm UTC](https://forums.unrealengine.com/t/how-to-get-all-actors-of-class-in-all-loaded-levels/312676/2 "2015-08-17T22:15:24Z")

</div>

Hey,

Did you figure this one out? I have the same problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [August 18, 2015, 6:22am UTC](https://forums.unrealengine.com/t/how-to-get-all-actors-of-class-in-all-loaded-levels/312676/3 "2015-08-18T06:22:45Z")

</div>

I haven’t found a direct solution I’m afraid. My workaround right now is that I moved the search logic to the level blueprints: When a level is streamed in then its BeginPlay event is fired so I do the search there then pass the found actors to my custom game state BP using an interface call.
