Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGSubsystem
Description
Call InFunc to all partition grid cells matching 'InGridSizes' and overlapping with 'InBounds'. 'InFunc' can schedule work or execute immediately. 'InGridSizes' should be sorted in descending order. If 'bCanCreateActor' is true, it will create the partition actor at that cell if necessary.
| Name | ForAllOverlappingCells |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Subsystems/PCGSubsystem.h |
| Include Path | #include "Subsystems/PCGSubsystem.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Subsystems/PCGSubsystem.cpp |
FPCGTaskId ForAllOverlappingCells
(
UPCGComponent * InPCGComponent,
const FBox & InBounds,
const PCGHiGenGrid::FSizeArray & InGridSizes,
bool bCanCreateActor,
const TArray < FPCGTaskId > & Dependencies,
TFunctionRef < FPCGTaskId *, const FBox &)> InFunc,
TFunctionRef < FPCGTaskId &, const FIntVector &, const FBox &)> InUnloadedFunc
) const