![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EngineUtils.h>
Public Member Functions | |
| FActorIteratorState (const UWorld *InWorld, const TSubclassOf< AActor > InClass) | |
| ~FActorIteratorState () | |
| AActor * | GetActorChecked () const |
Public Attributes | |
| const UWorld * | CurrentWorld |
| TArray< AActor * > | ActorArray |
| int32 | Index |
| bool | ReachedEnd |
| int32 | ConsideredCount |
| AActor * | CurrentActor |
| TArray< AActor * > | SpawnedActorArray |
| UClass * | DesiredClass |
| FDelegateHandle | ActorSpawnedDelegateHandle |
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.
|
inline |
Default ctor, inits everything
|
inline |
|
inline |
Returns the current suitable actor pointed at by the Iterator
| FDelegateHandle FActorIteratorState::ActorSpawnedDelegateHandle |
Handle to the registered OnActorSpawned delegate
| int32 FActorIteratorState::ConsideredCount |
Number of actors that have been considered thus far
| AActor* FActorIteratorState::CurrentActor |
Current actor pointed to by actor iterator
| const UWorld* FActorIteratorState::CurrentWorld |
Current world we are iterating upon
| UClass* FActorIteratorState::DesiredClass |
The class type we are iterating, kept for filtering
| int32 FActorIteratorState::Index |
index of the current element in the object array
| bool FActorIteratorState::ReachedEnd |
Whether we already reached the end