Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGActorHelpers
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ForEachActorInWorld
(
UWorld* World, |
Helpers/PCGActorHelpers.h | ||
static void ForEachActorInWorld
(
UWorld* World, |
Iterate over all actors in the world, from the given class, and pass them to a callback | Helpers/PCGActorHelpers.h |
ForEachActorInWorld(UWorld , TFunctionRef< bool(AActor )>)
| Name | ForEachActorInWorld |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path | #include "Helpers/PCGActorHelpers.h" |
template<typename T, typename>
static void ForEachActorInWorld
(
UWorld * World,
TFunctionRef < bool *)> Callback
)
ForEachActorInWorld(UWorld , TSubclassOf< AActor >, TFunctionRef< bool(AActor )>)
Description
Iterate over all actors in the world, from the given class, and pass them to a callback
| Name | ForEachActorInWorld |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path | #include "Helpers/PCGActorHelpers.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Helpers/PCGActorHelpers.cpp |
static void ForEachActorInWorld
(
UWorld * World,
TSubclassOf < AActor > ActorClass,
TFunctionRef < bool *)> Callback
)
Parameters
| Name | Remarks |
|---|---|
| World | The world |
| ActorClass | class of AActor to pass to the callback |
| Callback | Function to call with the found actor. Needs to return a bool, to indicate if it needs to continue (true = yes) |