Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · member function

UOrreryTerrainLandscapeImport::

ImportLandscapeToStore

Editor only

Import a Landscape's final heightmap, and its paint when Options.bImportPaint, into a tile store.

Declaration

static bool ImportLandscapeToStore(ALandscapeProxy* Landscape, UOrreryTerrainTileStoreAsset* Store, const FOrreryLandscapeImportOptions& Options,
                                   FOrreryLandscapeImportReport& Report);
Header
#include "OrreryTerrainLandscapeImport.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor"); 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, editor only.

Description

Sets the store's origin and base cell, builds it, clears its GeoOrigin, records the provenance (Input Landscape, the actor's path, ComputeHostHash) and dirties the store's package. Does not save it. Leaves the Landscape and its packages untouched.

Parameters

NameTypeDefaultMeaning
LandscapeALandscapeProxy*—

Any proxy of the Landscape; the whole Landscape is imported.

StoreUOrreryTerrainTileStoreAsset*—

The asset to fill. Its grid origin and base cell are overwritten; its resident level and edit subdivision are kept.

Optionsconst FOrreryLandscapeImportOptions&—

Mip depth, paint, layer map, memory budget and compression.

ReportFOrreryLandscapeImportReport&—

Extent, errors, paint statistics and the hash, or the reason for a refusal. A refusal leaves Store as it was.

Returns

false for no Landscape info, a rotated Landscape, an X scale that differs from Y, a scale that is not positive, a post spacing outside 0.25..16 m, unloaded components, heights beyond 100 km, more than 256 paint layers, a layer map that misses a layer, reads over the memory budget, or a failed build.

Note.

Game thread, editor only.