Orrery Terrain · OrreryTerrainEditor module · member function
UOrreryTerrainBrushTool::
CanPaint
Editor onlyWhether 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 UOrreryTerrainPaintProperties* Paint, bool bInvert, FText& OutWhyNot);- Header
#include "Tools/OrreryTerrainBrushTool.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. (the rule of UOrreryTerrainBrushTool)
Description
A height tool (Paint null) may always stroke.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Paint | const UOrrery | — | The paint settings of a paint tool; null for a height tool. |
bInvert | bool | — | Shift is down: a Holes stroke fills, which paints the fill class. |
OutWhyNot | FText& | — | Why not, for the HUD or a script. |