Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · function

OrbdaleTerrainNewTerrain::

Create

Editor only

Create a terrain in World, or replace the source of the world's terrain (one terrain per world).

Declaration

FOrbdaleTerrainNewResult Create(UWorld& World, const UOrbdaleTerrainNewTerrainProperties& Props);
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.
Thread
Game thread, editor only.

Description

One transaction ("New terrain") holds the actor spawn or the Source change, so undo removes the actor or restores the old source. The source asset is made before the transaction and stays after an undo; it is left unsaved. A refusal changes nothing.

Parameters

NameTypeDefaultMeaning
WorldUWorld&——
Propsconst UOrbdaleTerrainNewTerrainProperties&——
Note.

Game thread, editor only. File sources block while they import; the importers have no cancel.