How do I get a reference to every object in the level that’s based off a specific type? The type in question is derived from AActor.
You can iterate through all objects of a specific type eg Actor using:
for(TObjectIterator<AActor> It; It; ++It)
{
AActor *EachActor = *It;
I know how to iterate through every element in a list. What I need to know is how to get a reference to every object in the Level, and filter the list to only include a specific type, which implements AActor.
The object iterator will iterate through all of the objects in the world of the given type including those that derive from the given class.