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
| Returns | Name | Description |
|---|---|---|
bool | Run | False with error set when the graph cannot be read or run. |
void | Clear | |
std::unique_ptr<IPcgLandscape> | FindLandscape | The ground the volume samples: its named terrain, else the first one. |
std::string | Fingerprint | What generation depends on; the system regenerates when it moves. |
bool | LoadGraph | Reads a .pcg through the VFS — what Subgraph nodes load with. |
void | RequestRegenerateAll | Bumped by the graph editor's Generate button: every volume regenerates. |
uint32_t | RegenerateRevision | |
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