Hello! GetAllActorsOfClass is using TActorIterator, that is using just arrays. Another option - take a look at ForEachObjectOfClass and ForEachObjectOfClasses global methods from UObjectHash.h - here fast hash bucket implementation is used, so it can be more effective.