UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TActorIterator< ActorType > Class Template Reference

#include <EngineUtils.h>

+ Inheritance diagram for TActorIterator< ActorType >:

Public Member Functions

 TActorIterator (const UWorld *InWorld, TSubclassOf< ActorType > InClass=ActorType::StaticClass(), EActorIteratorFlags InFlags=EActorIteratorFlags::OnlyActiveLevels|EActorIteratorFlags::SkipPendingKill)
 
 TActorIterator (EActorIteratorType)
 
FORCEINLINE ActorType * operator* () const
 
FORCEINLINE ActorType * operator-> () const
 
- Public Member Functions inherited from TActorIteratorBase< TActorIterator< ActorType > >
void operator++ ()
 
FORCEINLINE AActoroperator* () const
 
FORCEINLINE AActoroperator-> () const
 
FORCEINLINE operator bool () const
 
void ClearCurrent ()
 
int32 GetProgressNumerator () const
 

Friends

class TActorIteratorBase< TActorIterator >
 

Additional Inherited Members

- Protected Member Functions inherited from TActorIteratorBase< TActorIterator< ActorType > >
 TActorIteratorBase (EActorIteratorType)
 
 TActorIteratorBase (const UWorld *InWorld, TSubclassOf< AActor > InClass, const EActorIteratorFlags InFlags)
 
bool IsActorSuitable (const AActor *Actor) const
 
bool CanIterateLevel (const ULevel *Level) const
 

Detailed Description

template<typename ActorType>
class TActorIterator< ActorType >

Misc. Iterator types

Template actor iterator.

Constructor & Destructor Documentation

◆ TActorIterator() [1/2]

template<typename ActorType >
TActorIterator< ActorType >::TActorIterator ( const UWorld InWorld,
TSubclassOf< ActorType >  InClass = ActorType::StaticClass(),
EActorIteratorFlags  InFlags = EActorIteratorFlags::OnlyActiveLevels | EActorIteratorFlags::SkipPendingKill 
)
inlineexplicit

Constructor

Parameters
InWorldThe world whose actors are to be iterated over.
InClassThe subclass of actors to be iterated over.
InFlagsIteration flags indicating which types of levels and actors should be iterated

◆ TActorIterator() [2/2]

template<typename ActorType >
TActorIterator< ActorType >::TActorIterator ( EActorIteratorType  )
inlineexplicit

Constructor for creating an end iterator

Member Function Documentation

◆ operator*()

template<typename ActorType >
FORCEINLINE ActorType * TActorIterator< ActorType >::operator* ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

Returns
Current suitable actor

◆ operator->()

template<typename ActorType >
FORCEINLINE ActorType * TActorIterator< ActorType >::operator-> ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

Returns
Current suitable actor

Friends And Related Symbol Documentation

◆ TActorIteratorBase< TActorIterator >

template<typename ActorType >
friend class TActorIteratorBase< TActorIterator >
friend

The documentation for this class was generated from the following files: