struct
FTerrainGrassType
A grass type authored on the TERRAIN's layer palette rather than as a sibling FoliageComponent. UE5 hangs a grass type off the landscape layer info, and for the same reason: "sand does not grow grass" is a property of the painted layer, not of some other component that happens to be attached to the same actor. One entry per (layer, plant) pair; several may share a layer.
- Module
- Game
- Header
#include "Game/Components/TerrainComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
int32_t | layerIndex | Default 0. |
float | density | Default 0.2f. |
float | weightThreshold | Default 0.25f. |
std::string | meshPath | |
float | minScale | Default 0.8f. |
float | maxScale | Default 1.2f. |
float | slopeLimit | Default 0.4f. |
float | alignToSlope | 0 = every instance stands straight up, 1 = every instance lies in the surface plane. Grass on a hillside that stays vertical reads as a decal standing on edge; a bush that fully aligns on a cliff hangs sideways off it. The blend is the control an artist actually wants. Default 0.0f. |
int32_t | maxInstances | Default 20000. |
bool | enabled | Default true. |
Generated from Game/Components/TerrainComponent.h via game.json · Nov 5, 2026Version 1.0.0