# Has something changed with GetAllActors in 4.9?

**URL:** <https://forums.unrealengine.com/t/has-something-changed-with-getallactors-in-4-9/331910>\
**Category:** World Creation\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [September 11, 2015, 10:48pm UTC](https://forums.unrealengine.com/t/has-something-changed-with-getallactors-in-4-9/331910 "2015-09-11T22:48:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [September 12, 2015, 1:32am UTC](https://forums.unrealengine.com/t/has-something-changed-with-getallactors-in-4-9/331910/2 "2015-09-12T01:32:05Z")

</div>

Alternatively you could use object and actor iterators

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

GetAllActorsFromClass is made for blueprints but as you noticed it can be used in C++, that function it self use iterator.

---

_[View the full topic](https://forums.unrealengine.com/t/has-something-changed-with-getallactors-in-4-9/331910)._
