class
FFoliageInstanceCodec
The packed form of FoliageInstancesComponent::instances: a magic, a version, a count and fixed 48-byte records, base64 for the text scene format. The version is what makes the field schema-tolerant — a newer record layout is refused rather than misread, and the string survives a save untouched. Version 1 (36-byte records, no per-axis scale) still reads, as uniform.
- Module
- Game
- Header
#include "Terrain/FoliageInstances.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kVersion | Default 2. |
static constexpr size_t | kRecordSize | Default 48. |
static constexpr size_t | kRecordSizeV1 | Default 36. |
Public functions
| Returns | Name | Description |
|---|---|---|
std::string | Encode | |
bool | Decode | False for a foreign or truncated blob; out is left empty then. |
Function details
Encode
C++
static std::string Encode(const std::vector<FFoliagePaintedInstance>& instances)Decode
C++
static bool Decode(const std::string& blob, std::vector<FFoliagePaintedInstance>& out)False for a foreign or truncated blob; out is left empty then. An empty string is a valid empty field.
Generated from Terrain/FoliageInstances.h via game.json · Nov 5, 2026Version 1.0.0