Orbdale Terrain · OrbdaleTerrainEditor module · function
OrbdaleTerrainNewTerrain::
Create
Editor onlyCreate 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
| Name | Type | Default | Meaning |
|---|---|---|---|
World | UWorld& | — | — |
Props | const UOrbdale | — | — |
Note.
Game thread, editor only. File sources block while they import; the importers have no cancel.