Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGBlueprintElement
Description
Multi-threaded loop that will be called N number of times (defined by Iteration Loop parameter NumIterations). All points will be added in order (iteration 0 will be before iteration 1 in the final array).
| Name | IterationLoopBody |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGExecuteBlueprint.h |
| Include Path | #include "Elements/PCGExecuteBlueprint.h" |
UFUNCTION (BlueprintImplementableEvent, Category="PCG|Flow Control")
bool IterationLoopBody
(
const FPCGContext & InContext,
int64 Iteration,
const UPCGSpatialData * InA,
const UPCGSpatialData * InB,
FPCGPoint & OutPoint,
UPCGMetadata * OutMetadata
) const
True if the point should be kept, False if not.
Parameters
| Name | Remarks |
|---|---|
| InContext | Context of the execution |
| Iteration | Index of the current iteration. Must only be used to access input data, as this call is multi-threaded. It is not safe to access output data. |
| InA | Optional input spatial data, can be null. Constant, must not be modified. |
| InB | Optional input spatial data, can be null. Constant, must not be modified. |
| OutPoint | Point that will be added to the output data. Can be modified. |
| OutMetadata | Output metadata to write attribute to. Can be modified. |