Navigation
API > API/Runtime > API/Runtime/Engine
Abstract base class for actor iteration. Implements all operators and relies on IsActorSuitable to be overridden by derived class. Note that when Playing In Editor, this will find actors only in CurrentWorld.
| Name | FActorIteratorState |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/EngineUtils.h |
| Include Path | #include "EngineUtils.h" |
Syntax
class FActorIteratorState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FActorIteratorState
(
const UWorld* InWorld, |
Default ctor, inits everything | EngineUtils.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FActorIteratorState() |
EngineUtils.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorArray | TArray< AActor * > | Results from the GetObjectsOfClass query | EngineUtils.h | |
| ActorSpawnedDelegateHandle | FDelegateHandle | Handle to the registered OnActorSpawned delegate | EngineUtils.h | |
| ConsideredCount | int32 | Number of actors that have been considered thus far | EngineUtils.h | |
| CurrentActor | AActor * | Current actor pointed to by actor iterator | EngineUtils.h | |
| CurrentWorld | const UWorld * | Current world we are iterating upon | EngineUtils.h | |
| DesiredClass | UClass * | The class type we are iterating, kept for filtering | EngineUtils.h | |
| Index | int32 | Index of the current element in the object array | EngineUtils.h | |
| ReachedEnd | bool | Whether we already reached the end | EngineUtils.h | |
| SpawnedActorArray | TArray< AActor * > | Contains any actors spawned during iteration | EngineUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AActor * GetActorChecked() |
Returns the current suitable actor pointed at by the Iterator | EngineUtils.h |