Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · member function

UOrbdaleTerrainBake::

ComposeStore

Editor only

Compose Source with Authoring's payload into OutStore, which must be empty and not Source.

Declaration

static bool ComposeStore(const UOrbdaleTerrainSourceAsset& Source, const UOrbdaleTerrainAuthoringData& Authoring,
                         const FOrbdaleTerrainBakeOptions& Options, UOrbdaleTerrainTileStoreAsset& OutStore,
                         FOrbdaleTerrainBakeReport& OutReport);
Header
#include "Authoring/OrbdaleTerrainBake.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrainEditor"); in an editor module’s Build.cs: an editor module, not in packaged games.
Stability
Stable: changes within a major version only add.
Thread
Game thread (ParallelFor inside).

Description

Changes nothing else.

Parameters

NameTypeDefaultMeaning
Sourceconst UOrbdaleTerrainSourceAsset&—

The natural ground the payload was saved over.

Authoringconst UOrbdaleTerrainAuthoringData&—

The payload to fold in.

Optionsconst FOrbdaleTerrainBakeOptions&—

Banding and workers; bSave is ignored.

OutStoreUOrbdaleTerrainTileStoreAsset&—

Receives the grid (Source's origin, the edit cell, subdivision 1), the tiles, the provenance.

OutReportFOrbdaleTerrainBakeReport&—

Counts, precision and hashes, or why it refused. StorePath and the paths are left to the caller.

Returns

false, with OutReport.Error set, when the payload does not load over Source, a tile does not compose exactly, or the store cannot be built or opened. OutStore is untouched unless the failure came after it was written (the built store does not open); the caller discards it.

Note.

Game thread (ParallelFor inside). Deterministic: the same input gives byte-identical stores.