Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGBlueprintElement
Description
Multi-threaded loop that will be called on all points in InData. Can return a variable number of output points. All points will be added in the same order than in input. Will be called by Variable Loop function.
| Name | VariableLoopBody |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Elements/Blueprint/PCGBlueprintDeprecatedElement.h |
| Include Path | #include "Elements/Blueprint/PCGBlueprintDeprecatedElement.h" |
UFUNCTION (BlueprintImplementableEvent, Category="PCG|Flow Control")
TArray < FPCGPoint > VariableLoopBody
(
const FPCGContext & InContext,
const UPCGPointData * InData,
const FPCGPoint & InPoint,
UPCGMetadata * OutMetadata,
int64 Iteration
) const
Array of new points that will be added to the output point data.
Parameters
| Name | Remarks |
|---|---|
| InContext | Context of the execution |
| InData | Input point data. Constant, must not be modified. |
| InPoint | Point for the current iteration. Constant, must not be modified. |
| OutMetadata | Output metadata to write attribute to. Can be modified. |
| Iteration | Index of the current point. Must only be used to access input data, as this call is multi-threaded. It is not safe to access output data. |