Skip to content

Karma's Actor Iteration Process

Ravi Mohan edited this page Jan 10, 2025 · 3 revisions

The pseudo code for incrementing the iterator during the Actor iteration

Screenshot 2024-02-07 at 03 50 29

Note: There is a return keyword in the actorLevel == localCurrentWorld.PersistentLevel heuristic else (heuristically speaking, pun intended) the increment will always assign null to m_CurrentActor.

Usage:

for (TActorIterator<AActor> ActorItr(testWorld); ActorItr; ++ActorItr)
{
	// print name
	// KR_INFO("Iterating over actor: {0}", (*ActorItr)->GetName());
}

Clone this wiki locally