struct

TerrainComponent

Module
Game
Header
#include "Game/Components/TerrainComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolenabledDefault true.
std::stringheightmapPath
floatworldSizeDefault 256.0f.
floatheightScaleDefault 32.0f.
int32_tchunksPerSideDefault 4.
int32_tchunkResolutionDefault 32.
boolgenerateCollisionDefault true.
std::stringlayer0Path
std::stringlayer1Path
std::stringlayer2Path
std::stringlayer3Path
std::stringlayer4Path
std::stringlayer5Path
std::stringlayer6Path
std::stringlayer7Path
std::stringweightmapPath
std::stringweightmap2Path
std::stringeditLayersPathThe non-destructive sculpt stack, stored beside the terrain exactly like the weightmaps are: the heightmap file holds the FLATTENED result, this holds base + per-layer deltas, and a load recomposites from it so hiding a layer still restores what was underneath. Empty = the terrain was saved flattened and sculpting writes straight into the base.
std::stringretopoPathThe retopologize XZ offset grid, stored the same way and for the same reason as the edit-layer blob: it describes where the render samples sit, which the flattened heightmap beside it cannot express.
ESurfaceTypelayer0SurfaceA terrain is not one material. Each painted layer carries its own surface, and the collider resolves per square from the dominant weight, so walking off grass onto the rock you painted changes the footstep. Default ESurfaceType::Grass.
ESurfaceTypelayer1SurfaceDefault ESurfaceType::Stone.
ESurfaceTypelayer2SurfaceDefault ESurfaceType::Snow.
ESurfaceTypelayer3SurfaceDefault ESurfaceType::Sand.
ESurfaceTypelayer4SurfaceDefault ESurfaceType::Dirt.
ESurfaceTypelayer5SurfaceDefault ESurfaceType::Mud.
ESurfaceTypelayer6SurfaceDefault ESurfaceType::Gravel.
ESurfaceTypelayer7SurfaceDefault ESurfaceType::Wood.
floatlayerTilingDefault 32.0f.
floatlayerBlendSharpnessDefault 0.0f.
boolenableHolesDefault false.
floatslopeThresholdDefault 0.45f.
floathighHeightDefault 24.0f.
floatlowHeightDefault 4.0f.
std::vector<FTerrainSplinePoint>splinePointsSplines are deliberately absent from the rebuild fingerprint: applying one is an explicit command that writes into the edit session, so a fingerprint rebuild triggered by moving a point would discard the sculpt the previous apply produced.
int32_tsplineLayerDefault -1.
floatsplineStrengthDefault 1.0f.
int32_tsplineSegmentsPerSpanDefault 8.
boolsplineRaiseDefault true.
boolsplineLowerDefault true.
std::vector<FTerrainGrassType>grassTypesGrass authored on the layer palette. Empty is the historical behaviour: scatter comes from a sibling FoliageComponent, or from nothing.
boolstreamingTileOne tile of a tiled import. A tile streams: TerrainSystem builds its mesh, quadtree and collider when the camera comes within the streaming load radius and releases them past the unload radius. Off for a stand-alone landscape, which is always resident. Default false.
boolstreamingAlwaysLoadedNever evicted regardless of distance — the tile holding the player start, or one a scripted sequence needs standing. Default false.
std::stringbuiltFingerprint
uint32_tweightmapRevisionBumped by every weightmap write. Layer-gated foliage scatters from those weights, so painting grass onto a slope has to re-scatter it — and the only other signal available was the terrain's own build fingerprint, which would rebuild every chunk and the collider for one brush dab. Default 0.

Constructors

SignatureNameDescription
TerrainComponent() = defaultTerrainComponent

Function details

TerrainComponent

C++
TerrainComponent() = default
Generated from Game/Components/TerrainComponent.h via game.json · Nov 5, 2026Version 1.0.0