PCG

PCG module API reference: 6 headers · 23 types · 186 symbols.

Generated from pcg.json · Oct 26, 2026Version 1.0.0
Build name
MowoEngine.PCG
Source
Engine/Source/Runtime/PCG/Public
Category
Runtime
Contents
6 headers · 23 types · 186 symbols

PCG/MPcgStatics.h

KindTypeSummary
classMPcgStaticsVisual Scripting's PCG controls: regenerate every volume (optionally on a new seed — a fresh world each run), and read back what the volumes placed.

PCG/PcgComponent.h

KindTypeSummary
structPcgComponentA PCG volume: runs a .pcg graph over the box around the entity (or the whole landscape when the extents are zero) and places what its spawners make — foliage on this entity, mesh actors and Level Instances in the scene.

PCG/PcgExecutor.h

KindTypeSummary
structFPcgPoint
structFPcgSplineA curve the graph can sample or measure against, as a dense world-space polyline (the generation step tessellates the scene's splines).
classIPcgLandscapeThe ground a graph samples. The PCG system hands over the scene's terrain; a test hands over any heightfield.
classFPcgHeightfieldLandscapeA terrain heightmap centred on origin, worldSize metres across.
structFPcgContext
structFPcgSpawnOutput
structFPcgResult
structFPcgCellResult
structFPcgCacheStats
classFPcgCache
structFPcgCache::FEntry
classFPcgExecutorRuns a graph: nodes in dependency order, each reading its input point sets and producing one. Same graph, same context, same result — bit for bit on one machine, and every random choice comes from integer hashing, so acr

Free functions

SignatureDescription
static constexpr uint32_t kPcgMaxAttributes = 8Named per-point attributes a graph may carry beside the fixed fields.

PCG/PcgGeneratedComponent.h

KindTypeSummary
structPcgGeneratedComponentMarks an actor a PCG volume placed, by the volume entity's id, so the next generation (or a reload of a level saved with the output) removes exactly what the last one made.

PCG/PcgGeneration.h

KindTypeSummary
classFPcgGenerationRuns a PCG volume against its scene and places the result: the previous output goes first (tagged actors, recorded Level Instances), then foliage onto the volume's PaintedFoliage, mesh actors and Level Instances.

PCG/PcgGraph.h

KindTypeSummary
enumEPcgParamKind
structFPcgParamDef
structFPcgNodeDefOne node kind: what it is called, which point sets it reads (by pin id), and the parameters it takes. Every node has one output, "out".
classFPcgNodeCatalog
structFPcgNode
structFPcgEdge
classFPcgGraphA .pcg document: nodes, the wires between them and the graph's own seed. Text MDF, so a graph diffs and merges like every other asset.

Page feedback

Was this page helpful?