Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · struct

FOrreryTerrainNewSourceFlow

Editor only

One source kind of Manage, New: Flat, Procedural, Heightmap, DEM, and Landscape.

Declaration

struct FOrreryTerrainNewSourceFlow
Header
#include "Tools/OrreryTerrainNewTerrain.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.

Description

Adding a kind is one Register call from the module that owns it: it supplies the preview estimate and the function that builds the source asset from the properties set.

Properties

NameTypeDefaultMeaning
IdFName——
LabelFText——
Orderint320

Position in the kind list, ascending; ties break by Id.

EstimateTFunction<void(const UOrreryTerrainNewTerrainProperties&, FOrreryTerrainNewEstimate&)>—

Fill the preview from the properties without creating anything.

Required.

MakeSourceTFunction<UOrreryTerrainSourceAsset*(const UOrreryTerrainNewTerrainProperties&, UPackage*, FName, FOrreryTerrainNewEstimate&, FString&)>—

Create the source asset in Package under the name, fill it (NewObject with RF_Public | RF_Standalone | RF_Transactional) and refine the estimate.

Return null and set the error to refuse; the caller then discards the package and what is in it. Required.