Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainSubsystem::

DestroyTerrain

Destroy the terrain.

Declaration

void DestroyTerrain();
Header
#include "OrreryTerrainSubsystem.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread.

Description

Broadcasts OnTerrainWillBeDestroyed first, while the world, the chunks and the provider are all still readable (an edit from that listener is refused); then ends an editor session, unregisters the provider, stops streaming (waiting for loads in flight), destroys the chunks, and only then the world. Broadcasts OnTerrainDestroyed last. Does nothing without a terrain.

Note.

Game thread. From inside a ground-changed listener the destroy is deferred to the next tick.