Navigation
API > API/Plugins > API/Plugins/PCGToolset > API/Plugins/PCGToolset/UPCGToolset
Description
Returns a JSON Data View of a specific node's output data from the last graph execution. On first call, enables inspection so future ExecuteGraphInstance calls store per-node data. If no inspection data exists, returns an error prompting re-execution.
IMPORTANT: Inspection state is shared at the graph asset level. If multiple actors use the same graph, you MUST call this tool (and ExecuteGraphInstance) on only one actor at a time. Wait for each call to fully complete before calling on the next actor. Concurrent calls on actors sharing the same graph will cause a freeze.
| Name | GetNodeDataView |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Toolsets/PCGToolset/Source/PCGToolset/Public/PCGToolset.h |
| Include Path | #include "PCGToolset.h" |
| Source | /Engine/Plugins/Experimental/Toolsets/PCGToolset/Source/PCGToolset/Private/PCGToolset.cpp |
UFUNCTION (Meta=(AICallable), Category="PCG|Data")
static FString GetNodeDataView
(
const APCGVolume * PCGVolume,
const UPCGNode * Node,
const FString & PinLabel,
const FString & AttributeName,
const int32 StartIndex,
const int32 EndIndex
)
JSON string with the data view contents
Parameters
| Name | Remarks |
|---|---|
| PCGVolume | The PCG Volume whose graph was executed. |
| Node | The node whose output to inspect. |
| PinLabel | Output pin label to read. Defaults to "Out". |
| AttributeName | Filter to a single attribute/property (e.g. "$Position", "$Density", "MyCustomAttr"). Empty = all attributes. |
| StartIndex | Element range start, inclusive, 0-based. Default 0. |
| EndIndex | Element range end, exclusive. -1 means all elements (Python slice convention). Default -1. |