Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · class

UOrreryTerrainEdMode

Editor only

Editor mode "Terrain (Orrery)".

Declaration

UCLASS()
class UOrreryTerrainEdMode : public UEdMode, public ILegacyEdModeViewportInterface
Header
#include "Mode/OrreryTerrainEdMode.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
UEdMode, ILegacyEdModeViewportInterface

Description

Enter registers every tool and action of the registry with the mode's tool manager and command list, and keeps them in step with later registrations; Exit reverses that and saves the mode's settings. The mode never decides which tools exist: the tool modules and extensions add registry entries. With no terrain in the world only entries that do not require one (Manage, New) are enabled.

Registered with the mode manager from the class's CDO (Info), so there is no RegisterMode call.

While entered it holds the terrain's editor session, with the author limits of UOrreryTerrainEditorSettings, re-opened when the terrain is re-created; and a transient invoker actor that the brush tools move to the cursor, so the ground under the brush loads wherever the camera is. It routes the active tool's hotkeys (FInteractiveToolActionSet) from the viewport, and before Ctrl+Z or Ctrl+Y closes an open stroke into its transaction, so the undo takes the whole stroke back.

Note.

Game thread, editor only. Tier 3.

Functions

Properties

NameTypeDefaultMeaning
EM_OrreryTerrainconst FEditorModeID—

The mode's id.