struct
FoliageInstancesComponent
Hand-painted foliage: the palette and every instance the Foliage viewport mode placed with it. UE5's AInstancedFoliageActor. Instances are stored in WORLD space inside one packed field (see FFoliageInstanceCodec) rather than as a reflected array — ten thousand rows is not a details-panel property, and the scene format stays one string key that an older loader simply leaves alone.
- Module
- Game
- Header
#include "Game/Components/FoliageInstancesComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::vector<FFoliageType> | types | |
std::string | instances | FFoliageInstanceCodec blob. Hidden from Details: the Foliage mode is the editor for it, and a wall of base64 is not an editable row. |
int32_t | revision | Bumped by every edit the tool makes. The build fingerprint reads it instead of hashing the blob, so a 100 000-instance field costs nothing per frame to watch; undo restores an older number, which differs from the built one exactly when the blob does. Default 0. |
float | bladeWidth | The clump drawn for palette rows with no mesh. Default 0.1f. |
float | bladeHeight | Default 0.7f. |
Vec3 | baseColor | Default Vec3(0.10f, 0.22f, 0.05f). |
Vec3 | tipColor | Default Vec3(0.35f, 0.62f, 0.16f). |
std::string | builtFingerprint | |
uint32_t | builtInstanceCount | Default 0. |
std::vector<FoliageBatchDraw> | renderBatches | GPU-instanced clump batches, one per palette row that qualifies, built by FoliageSystem and submitted by Scene::OnRender the same way the terrain field's are. A dense paint used to cost one submesh submit per clump; a batch is one indirect draw for the whole row. |
uint32_t | builtBatchedCount | Default 0. |
Constructors
| Signature | Name | Description |
|---|---|---|
FoliageInstancesComponent() = default | FoliageInstancesComponent |
Function details
FoliageInstancesComponent
C++
FoliageInstancesComponent() = defaultGenerated from Game/Components/FoliageInstancesComponent.h via game.json · Nov 5, 2026Version 1.0.0