Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGBlueprintElement
Description
Multi-threaded loop that will iterate on all nested loop pairs (e.g. (o, i) for all o in Outer, i in Inner). All points will be added in the same order than in input (e.g: (0,0), (0,1), (0,2), ...). Will be called by Nested Loop function.
| Name | NestedLoopBody |
| 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 NestedLoopBody
(
const FPCGContext & InContext,
const UPCGPointData * InOuterData,
const UPCGPointData * InInnerData,
const FPCGPoint & InOuterPoint,
const FPCGPoint & InInnerPoint,
FPCGPoint & OutPoint,
UPCGMetadata * OutMetadata,
int64 OuterIteration,
int64 InnerIteration
) const
True if the point should be kept, False if not.
Parameters
| Name | Remarks |
|---|---|
| InContext | Context of the execution |
| InOuterData | Outer point data. Constant, must not be modified. |
| InInnerData | Inner point data. Constant, must not be modified. |
| InOuterPoint | Outer Point for the current iteration. Constant, must not be modified. |
| InInnerPoint | Inner Point for the current iteration. 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. |
| OuterIteration | Index of the current point in outer data. Must only be used to access input data, as this call is multi-threaded. It is not safe to access output data. |
| InnerIteration | Index of the current point in inner data. Must only be used to access input data, as this call is multi-threaded. It is not safe to access output data. |