struct
PcgComponent
A 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. The seed makes the result repeatable; changing the graph, the seed, the box or the terrain regenerates it in the editor.
- Module
- PCG
- Header
#include "PCG/PcgComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | graph | |
int32_t | seed | Default 1. |
Vec3 | extents | Default Vec3(32.0f, 32.0f, 32.0f). |
std::string | landscape | Empty = the first terrain in the scene. |
bool | generateInEditor | Default true. |
bool | generateAtRuntime | Default true. |
int32_t | maxPoints | Default 200000. |
bool | partitioned | Default false. |
float | partitionCellSize | Default 64.0f. |
int32_t | maxMeshActors | Default 2000. |
std::string | generatedLevels | What the last run placed as Level Instances, one "name|map" per line, so the next run (or a reload) can take them away first. |
std::string | builtFingerprint | |
uint32_t | lastPointCount | Default 0. |
uint32_t | lastFoliageCount | Default 0. |
uint32_t | lastMeshCount | Default 0. |
uint32_t | lastLevelCount | Default 0. |
uint64_t | lastHash | Default 0. |
std::string | lastError |
Generated from PCG/PcgComponent.h via pcg.json · Oct 26, 2026Version 1.0.0