Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · class

UOrreryTerrainNewTerrainProperties

Editor only

The fields of Manage, New.

Declaration

UCLASS(config = EditorPerProjectUserSettings)
class UOrreryTerrainNewTerrainProperties : public UInteractiveToolPropertySet
Header
#include "Tools/OrreryTerrainNewTerrainTool.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.
Derives from
UInteractiveToolPropertySet

Description

Saved per user between sessions.

Note.

Game thread, editor only.

Functions

  • CreateTerrain

    Create the terrain these fields describe, or replace the source of the world's terrain: one undoable transaction.

  • GetSourceKindOptionsstatic

    The ids of the registered source kinds, for the dropdown.

Properties

NameTypeDefaultMeaning
SourceKindFNameTEXT("Flat")

Source kind id: Flat, Procedural, Heightmap, DEM, or one an extension registered.

Size_kmdouble4.0

Edge length of the square terrain, km; rounded up to whole 127-quad tiles.

Flat and Procedural only.

Cell_mdouble1.0

Base post spacing, metres.

Flat and Procedural only; files carry their own.

Origin_mFVector2DFVector2D::ZeroVector

World position of base post (0, 0), metres.

Flat and Procedural only.

Height_mdouble0.0

Flat: ground height; Procedural: mean height.

Metres.

Seedint641

Procedural: noise seed.

Amplitude_mdouble40.0

Procedural: peak deviation of the first octave from the mean height, metres.

Wavelength_mdouble400.0

Procedural: feature size of the first octave, metres.

Octavesint324

Procedural: octaves.

FilesTArray<FString>—

Heightmap (one .png, .r16, .raw or .bin with its sidecar) or DEM (GeoTIFFs): absolute paths.

Decimateint321

DEM: keep every Nth post.

LandscapeTSoftObjectPtr<ALandscapeProxy>—

Landscape: the Landscape actor to import, heights and paint layers.

Not saved between sessions.

MaterialTObjectPtr<UMaterialInterface>—

Surface material of the terrain actor; empty keeps the actor's default.

AssetFolderFStringTEXT("/Game/Terrain")

Content folder of the new source asset.

AssetNameFStringTEXT("Terrain")

Base name of the new source asset; a number is added when it is taken.

ToolTWeakObjectPtr<UOrreryTerrainNewTerrainTool>—

The tool whose fields these are; unset on a set made for a script (MakeNewTerrainProperties).