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

TypeNameDescription
static constexpr uint32_tkVersionDefault 2.
static constexpr size_tkRecordSizeDefault 48.
static constexpr size_tkRecordSizeV1Default 36.

Public functions

ReturnsNameDescription
std::stringEncode
boolDecodeFalse 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