Orrery Terrain · OrreryTerrainEditor module · struct
FOrreryTerrainNewSourceFlow
Editor onlyOne 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
| Name | Type | Default | Meaning |
|---|---|---|---|
Id | FName | — | — |
Label | FText | — | — |
Order | int32 | 0 | Position in the kind list, ascending; ties break by Id. |
Estimate | TFunction< | — | Fill the preview from the properties without creating anything. Required. |
Make | TFunction< | — | 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. |