struct
WaterZoneComponent
A water zone: the authored object that says which stretch of world the water system is responsible for. UE's WaterZone does three jobs and so does this one — it bounds which bodies participate, it fixes the water info texture's extent and resolution (instead of the extent being whatever the union of the bodies happened to be, which moved every time a body was edited), and it carries the far-distance mesh that fills the horizon past the bodies themselves.
- Module
- Game
- Header
#include "Game/Components/WaterZoneComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
A scene with no zone still works: the info texture falls back to the union of the published bodies and nothing draws a far mesh. A zone is how you take control of that, not a thing you must have.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | extent | Square side, in metres, centred on the entity. Bodies whose extent does not reach inside it are left out of the info texture entirely. Default 2048.0f. |
int32_t | infoResolution | Info texture resolution per side. Fixed by the zone rather than by the cvar so a designer can pay for a narrow river's channel without raising the cost of every other scene. Default 512. |
bool | farDistanceMesh | The horizon filler: a coarse quadtree surface out to Far Distance Extent, drawn under everything else so an ocean does not simply stop where its body's extent runs out. Default true. |
float | farDistanceExtent | Default 16384.0f. |
int32_t | farLodLevels | Default 3. |
int32_t | farLodQuads | Default 8. |
float | farLodScale | Default 1.5f. |
Vec3 | color | Shading of the far surface. Deliberately its own set rather than borrowed from a body: the far mesh has no bathymetry and no shoreline, and matching it to a lake's tint is an authoring choice, not a rule. Default Vec3(0.03f, 0.12f, 0.19f). |
float | opacity | Default 0.9f. |
float | depthFade | Default 4.0f. |
float | absorptionDensity | Default 0.5f. |
float | waveAmplitude | Default 0.4f. |
float | waveLength | Default 48.0f. |
float | waveSteepness | Default 0.35f. |
float | waveSpeed | Default 4.0f. |
float | waveDirectionDegrees | Default 0.0f. |
std::string | builtFingerprint | |
float | waveTime | Default 0.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
WaterZoneComponent() = default | WaterZoneComponent |
Function details
WaterZoneComponent
C++
WaterZoneComponent() = defaultGenerated from Game/Components/WaterZoneComponent.h via game.json · Nov 5, 2026Version 1.0.0