add_pcg_node
Add a node of a specified UPCGSettings subclass to an Unreal Engine PCG graph and save the graph after mutation. Use it to build or extend PCG graphs programmatically.
Instructions
Adds a node of the given UPCGSettings subclass to a PCG graph. Uses UPCGGraph::AddNodeOfType, which creates the node's settings in the transient package and reparents the node into the graph (headless-safe). The graph is re-saved after the mutation.
Returns: { graph_name: string, asset_path: string, node_title: string, node_name: string, settings_class: string, node_count: int, saved: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_type | Yes | A concrete UPCGSettings subclass name, e.g. "PCGSurfaceSamplerSettings", "PCGStaticMeshSpawnerSettings", or a fully-qualified "/Script/PCG.PCGSurfaceSamplerSettings". | |
| pcg_graph_path | Yes | Asset path of the PCG Graph (e.g. "/Game/PCG/PCG_Example" or fully-qualified "/Game/PCG/PCG_Example.PCG_Example"). |