Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGSubsystem
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/PCGSubsystem.h |
| Include | #include "PCGSubsystem.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/PCGSubsystem.cpp |
FPCGTaskId ForAllOverlappingCells
(
const FBox & InBounds,
const PCGHiGenGrid::FSizeArray & InGridSizes,
bool bCanCreateActor,
const TArray < FPCGTaskId > & Dependencies,
TFunctionRef < FPCGTaskId *, const FBox &)> InFunc
) const
Remarks
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.