Orrery Terrain · OrreryTerrainEditor module · member function
UOrreryTerrainLandscapeImport::
ImportLandscapeToStore
Editor onlyImport 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
| Name | Type | Default | Meaning |
|---|---|---|---|
Landscape | ALandscape | — | Any proxy of the Landscape; the whole Landscape is imported. |
Store | UOrrery | — | The asset to fill. Its grid origin and base cell are overwritten; its resident level and edit subdivision are kept. |
Options | const FOrrery | — | Mip depth, paint, layer map, memory budget and compression. |
Report | FOrrery | — | 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.
Game thread, editor only.