Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · member function

UOrbdaleTerrainBrushTool::

CanPaint

Editor only

Whether the project's author limits let a paint tool write what Paint names (holes, the ground class, a layer the layer table has).

Declaration

static bool CanPaint(const UOrbdaleTerrainPaintProperties* Paint, bool bInvert, 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)

Description

A height tool (Paint null) may always stroke.

Parameters

NameTypeDefaultMeaning
Paintconst UOrbdaleTerrainPaintProperties*—

The paint settings of a paint tool; null for a height tool.

bInvertbool—

Shift is down: a Holes stroke fills, which paints the fill class.

OutWhyNotFText&—

Why not, for the HUD or a script.