Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · struct

FOrbdaleTerrainNewSourceFlow

Editor only

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

Declaration

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

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 UOrbdaleTerrainNewTerrainProperties&, FOrbdaleTerrainNewEstimate&)>—

Fill the preview from the properties without creating anything.

Required.

MakeSourceTFunction<UOrbdaleTerrainSourceAsset*(const UOrbdaleTerrainNewTerrainProperties&, UPackage*, FName, FOrbdaleTerrainNewEstimate&, 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.