ue_pcg_add_node
Add a node to a PCG graph by specifying its settings class and graph path, then returns the node's pins for further connections.
Instructions
Aggiunge un nodo al grafo PCG e restituisce i suoi pin.
In PCG il tipo di un nodo è la sua classe di settings: un SurfaceSampler
è un nodo con PCGSurfaceSamplerSettings, uno spawner di mesh ha
PCGStaticMeshSpawnerSettings. La convenzione è sempre
PCG<Nome>Settings.
Args: graph_path: path dell'asset PCGGraph. settings_class: es. "PCGSurfaceSamplerSettings", "PCGStaticMeshSpawnerSettings", "PCGCreatePointsGridSettings", "PCGDensityFilterSettings". position: posizione nell'editor del grafo, {"x": .., "y": ..} o [x, y]. Serve solo alla leggibilità per chi apre il grafo a mano.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graph_path": "<graph_path>",
"settings_class": "<settings_class>"
},
"name": "ue_pcg_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| graph_path | Yes | ||
| settings_class | Yes |