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

#include <EngineUtils.h>

Public Member Functions

 TActorRange (const UWorld *InWorld, TSubclassOf< ActorType > InClass=ActorType::StaticClass(), const EActorIteratorFlags InFlags=EActorIteratorFlags::OnlyActiveLevels|EActorIteratorFlags::SkipPendingKill)
 

Friends

TActorIterator< ActorType > begin (const TActorRange &Range)
 
TActorIterator< ActorType > end (const TActorRange &Range)
 

Detailed Description

template<typename ActorType>
class TActorRange< ActorType >

Template actor range for ranged-for support.

Constructor & Destructor Documentation

◆ TActorRange()

template<typename ActorType >
TActorRange< ActorType >::TActorRange ( const UWorld InWorld,
TSubclassOf< ActorType >  InClass = ActorType::StaticClass(),
const 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

Friends And Related Symbol Documentation

◆ begin

template<typename ActorType >
TActorIterator< ActorType > begin ( const TActorRange< ActorType > &  Range)
friend

◆ end

template<typename ActorType >
TActorIterator< ActorType > end ( const TActorRange< ActorType > &  Range)
friend

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