Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · member function

UOrreryTerrainEditorLibrary::

NewTerrain

Editor onlyBlueprint

Create a terrain in World, or replace the source of its terrain, as Manage, New's Create Terrain button does: one undoable "New terrain" transaction.

Declaration

UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Editor")
static FOrreryTerrainEditorNewResult NewTerrain(UWorld* World, UOrreryTerrainNewTerrainProperties* Properties);
Blueprint New Terrain
The graph as text
  1. New Terrain (function call)
    • In World (World object): None
    • In Properties (OrreryTerrainNewTerrainProperties object): None
    • Out Return Value (OrreryTerrainEditorNewResult): not connected
Header
#include "OrreryTerrainEditorLibrary.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. (the rule of UOrreryTerrainEditorLibrary)
Blueprint
New Terrain, in Orrery › Terrain › Editor

Description

The source asset is left unsaved.

Parameters

NameTypeDefaultMeaning
WorldUWorld*—

The editor world to create the terrain in.

PropertiesUOrreryTerrainNewTerrainProperties*—

The fields of Manage, New (MakeNewTerrainProperties).

Returns

Whether a terrain was created or re-sourced, or the error; nothing changes on an error.