class

FPcgGeneration

Runs 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.

Module
PCG
Header
#include "PCG/PcgGeneration.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolRunFalse with error set when the graph cannot be read or run.
voidClear
std::unique_ptr<IPcgLandscape>FindLandscapeThe ground the volume samples: its named terrain, else the first one.
std::stringFingerprintWhat generation depends on; the system regenerates when it moves.
boolLoadGraphReads a .pcg through the VFS — what Subgraph nodes load with.
voidRequestRegenerateAllBumped by the graph editor's Generate button: every volume regenerates.
uint32_tRegenerateRevision
FPcgCache&SharedCache

Function details

Run

C++
static bool Run(Scene& scene, EntityID volume, std::string* error = nullptr)

False with error set when the graph cannot be read or run.

Clear

C++
static void Clear(Scene& scene, EntityID volume)

FindLandscape

C++
static std::unique_ptr<IPcgLandscape> FindLandscape(World& world, Scene& scene, const std::string& name)

The ground the volume samples: its named terrain, else the first one. Null when the scene has none.

Fingerprint

C++
static std::string Fingerprint(Scene& scene, EntityID volume)

What generation depends on; the system regenerates when it moves.

LoadGraph

C++
static bool LoadGraph(const std::string& path, FPcgGraph& out)

Reads a .pcg through the VFS — what Subgraph nodes load with.

RequestRegenerateAll

C++
static void RequestRegenerateAll()

Bumped by the graph editor's Generate button: every volume regenerates.

RegenerateRevision

C++
static uint32_t RegenerateRevision()

SharedCache

C++
static FPcgCache& SharedCache()
Generated from PCG/PcgGeneration.h via pcg.json · Oct 26, 2026Version 1.0.0