Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · member function

UOrbdaleTerrainBrushTool::

RegisterMask

Editor only

Register Mask's brush asset with Terrain, so a stroke may name it; Disc needs nothing.

Declaration

static bool RegisterMask(UOrbdaleTerrainSubsystem& Terrain, const UOrbdaleTerrainBrushMaskProperties* Mask, FText& OutWhyNot);
Header
#include "Tools/OrbdaleTerrainBrushTool.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. (the rule of UOrbdaleTerrainBrushTool)

Parameters

NameTypeDefaultMeaning
TerrainUOrbdaleTerrainSubsystem&—

The terrain the stroke will edit.

Maskconst UOrbdaleTerrainBrushMaskProperties*—

The tool's brush mask settings; null or Disc registers nothing.

OutWhyNotFText&—

Why the terrain refused the mask (not baked, a hash collision, over the registry's budget).

Returns

true for Disc, Registered and AlreadyHeld.