Orrery Terrain · OrreryTerrainEditor module · class
UOrreryTerrainNewTerrainProperties
Editor onlyThe 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.
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
| Name | Type | Default | Meaning |
|---|---|---|---|
Source | FName | TEXT("Flat") | Source kind id: Flat, Procedural, Heightmap, DEM, or one an extension registered. |
Size_ | double | 4.0 | Edge length of the square terrain, km; rounded up to whole 127-quad tiles. Flat and Procedural only. |
Cell_ | double | 1.0 | Base post spacing, metres. Flat and Procedural only; files carry their own. |
Origin_ | FVector2 | FVector2 | World position of base post (0, 0), metres. Flat and Procedural only. |
Height_ | double | 0.0 | Flat: ground height; Procedural: mean height. Metres. |
Seed | int64 | 1 | Procedural: noise seed. |
Amplitude_ | double | 40.0 | Procedural: peak deviation of the first octave from the mean height, metres. |
Wavelength_ | double | 400.0 | Procedural: feature size of the first octave, metres. |
Octaves | int32 | 4 | Procedural: octaves. |
Files | TArray< | — | Heightmap (one .png, .r16, .raw or .bin with its sidecar) or DEM (GeoTIFFs): absolute paths. |
Decimate | int32 | 1 | DEM: keep every Nth post. |
Landscape | TSoft | — | Landscape: the Landscape actor to import, heights and paint layers. Not saved between sessions. |
Material | TObject | — | Surface material of the terrain actor; empty keeps the actor's default. |
Asset | FString | TEXT("/Game/Terrain") | Content folder of the new source asset. |
Asset | FString | TEXT("Terrain") | Base name of the new source asset; a number is added when it is taken. |
Tool | TWeak | — | The tool whose fields these are; unset on a set made for a script (MakeNewTerrainProperties). |