For each loop on TArray

You can also use nicer ranged-for syntax:

for (AActor* Actor : Array)
{
    Actor->SomeActorFunc();
}

Steve

16 Likes