# Alternative to "Get all actors from Class"?

**URL:** <https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955>\
**Category:** Blueprint\
**Tags:** get-all-actors-from-, unreal-engine, Blueprint, question\
**Created:** [August 16, 2019, 11:11am UTC](https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955 "2019-08-16T11:11:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jezcentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jezcentral](https://forums.unrealengine.com/u/Jezcentral)\
**Post date:** [August 16, 2019, 11:24am UTC](https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955/2 "2019-08-16T11:24:21Z")

</div>

It IS intensive. To get round this, you need to store an array of the spawned blueprints (usually in the level BP, or the player BP, depending on what the listed BPs are), and then loop through it. You need to keep track of when to add to, or remove from, this list, but the overhead is massively less than GetActorsFromClass.

The overhead of GetActorsFromClass comes from it looping through ALL the actors in the game, and returning an array where the class matched. If you create the array and maintain it yourself, the game doesn’t need to loop though all the Actors, and you save yourself the massive number of operations required to do this every time your reference it.

---

_[View the full topic](https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955)._
